Projects STRLCPY maigret Commits 89c33e54
🤬
  • Removed pattern typing for compatibility

  • Loading...
  • Soxoj committed 4 years ago
    89c33e54
    1 parent c0956a0e
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■
    maigret/utils.py
    1 1  import re
     2 +import sys
    2 3   
    3 4   
    4 5  class CaseConverter:
    skipped 40 lines
    45 46   return ''
    46 47   
    47 48   @classmethod
    48  - def make_profile_url_regexp(self, url: str, username_regexp: str = '') -> re.Pattern:
     49 + def make_profile_url_regexp(self, url: str, username_regexp: str = ''):
    49 50   url_main_part = self.extract_main_part(url)
    50 51   for c in self.UNSAFE_SYMBOLS:
    51 52   url_main_part = url_main_part.replace(c, f'\\{c}')
    skipped 6 lines
Please wait...
Page is in error, reload to recover