Skip to content

Commit

Permalink
Make regexp string raw to correct its escape sequence usage (GH-371)
Browse files Browse the repository at this point in the history
Fixes:

    $ python3 -Wd setup.py
    setup.py:117: DeprecationWarning: invalid escape sequence \.
    ...
  • Loading branch information
jwilk committed Jun 16, 2023
1 parent 0268b8e commit 9468190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -114,7 +114,7 @@ def static_env_list(name, separator=None):

def setup_extra_options():
is_interesting_package = re.compile('^(libxml|libxslt|libexslt)$').match
is_interesting_header = re.compile('^(zconf|zlib|.*charset)\.h$').match
is_interesting_header = re.compile(r'^(zconf|zlib|.*charset)\.h$').match

def extract_files(directories, pattern='*'):
def get_files(root, dir_path, files):
Expand Down

0 comments on commit 9468190

Please sign in to comment.