parameters: (self, dt, is_dst=False)
return_statement: return dt.astimezone(self)
docstring: Correct the timezone information on the given datetime
docstring_summary: Correct the timezone information on the given datetime
docstring_tokens: Correct the timezone information on the given datetime
function: def normalize(self, dt, is_dst=False):
          '''Correct the timezone information on the given datetime'''
          if dt.tzinfo is self:
              return dt
          if dt.tzinfo is None:
              raise ValueError('Naive time - no tzinfo set')
          return dt.astimezone(self)
function_tokens: def normalize ( self , dt , is_dst = False ) : if dt . tzinfo is self : return dt if dt . tzinfo is None : raise ValueError ( 'Naive time - no tzinfo set' ) return dt . astimezone ( self )