def utcnow(with_timezone=False):
 if utcnow.override_time:
  try:
   return utcnow.override_time.pop(0)
  except AttributeError:
   return utcnow.override_time
 if with_timezone:
  return datetime.datetime.now(tz=iso8601.iso8601.UTC)
 return datetime.datetime.utcnow()

def utcnow ( with_timezone = False ) : if utcnow . override_time : try : return utcnow . override_time . pop ( 0 ) except AttributeError : return utcnow . override_time if with_timezone : return datetime . datetime . now ( tz = iso8601 . iso8601 . UTC ) return datetime . datetime . utcnow ( )
overridable version of utils .