This commit is contained in:
Lonami 2019-07-05 20:53:32 +02:00 committed by GitHub
parent cc6662e183
commit e91c296d4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ class CallbackQuery(EventBuilder):
elif hasattr(match, 'match') and callable(match.match):
if not isinstance(getattr(match, 'pattern', b''), bytes):
match = re.compile(match.pattern.encode('utf-8'),
match.flags & (~re.UNICODE))
match.flags & (~re.UNICODE))
self.match = match.match
else: