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.
 
 
 
 

13 lines
283 B

  1. import re
  2. COMPILED_REGEX_TYPE = type(re.compile(''))
  3. class RegexObject(object):
  4. def __init__(self, obj):
  5. self.pattern = obj.pattern
  6. self.flags = obj.flags
  7. def __eq__(self, other):
  8. return self.pattern == other.pattern and self.flags == other.flags