def make_aware(value, timezone):
 if hasattr(timezone, 'localize'):
  return timezone.localize(value, is_dst=None)
 else:
  return value.replace(tzinfo=timezone)

def make_aware ( value , timezone ) : if hasattr ( timezone , 'localize' ) : return timezone . localize ( value , is_dst = None ) else : return value . replace ( tzinfo = timezone )
makes a naive datetime .