You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 years ago
1234567891011121314151617
  1. import datetime
  2. import re
  3. COMPILED_REGEX_TYPE = type(re.compile(''))
  4. class RegexObject:
  5. def __init__(self, obj):
  6. self.pattern = obj.pattern
  7. self.flags = obj.flags
  8. def __eq__(self, other):
  9. return self.pattern == other.pattern and self.flags == other.flags
  10. def get_migration_name_timestamp():
  11. return datetime.datetime.now().strftime("%Y%m%d_%H%M")