def make_naive(value, timezone):
 value = value.astimezone(timezone)
 if hasattr(timezone, 'normalize'):
  value = timezone.normalize(value)
 return value.replace(tzinfo=None)

def make_naive ( value , timezone ) : value = value . astimezone ( timezone ) if hasattr ( timezone , 'normalize' ) : value = timezone . normalize ( value ) return value . replace ( tzinfo = None )
makes an aware datetime .