mirror of https://github.com/sgoudham/Enso-Bot.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
388 B
Python
18 lines
388 B
Python
5 years ago
|
import datetime
|
||
|
import re
|
||
|
|
||
|
COMPILED_REGEX_TYPE = type(re.compile(''))
|
||
|
|
||
|
|
||
|
class RegexObject:
|
||
|
def __init__(self, obj):
|
||
|
self.pattern = obj.pattern
|
||
|
self.flags = obj.flags
|
||
|
|
||
|
def __eq__(self, other):
|
||
|
return self.pattern == other.pattern and self.flags == other.flags
|
||
|
|
||
|
|
||
|
def get_migration_name_timestamp():
|
||
|
return datetime.datetime.now().strftime("%Y%m%d_%H%M")
|