#NEWLINE# def read_fixed( self , r , size ) : #NEWLINE# #INDENT# time = self . _read_time ( r , ( size - 5 ) , self . _prec , _utc ) #NEWLINE# date = self . _read_date ( r ) #NEWLINE# offset = r . get_smallint ( ) #NEWLINE# tzinfo_factory = self . _session . tzinfo_factory #NEWLINE# if ( tzinfo_factory is None ) : #NEWLINE# #INDENT# from . tz import FixedOffsetTimezone #NEWLINE# tzinfo_factory = FixedOffsetTimezone #NEWLINE# #UNINDENT# tz = tzinfo_factory ( offset ) #NEWLINE# return datetime . combine ( date , time ) . astimezone ( tz )