def utc_aware(unaware):
 def utc_method(*args, **kwargs):
  dt = unaware(*args, **kwargs)
  return dt.replace(tzinfo=UTC)
 return utc_method

def utc_aware ( unaware ) : def utc_method ( * args , ** kwargs ) : dt = unaware ( * args , ** kwargs ) return dt . replace ( tzinfo = UTC ) return utc_method
decorator for adding utc tzinfo to datetimes utcfoo methods .