Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix deprecation warning for POSIX variable regex
This was also caught by Flake8 as:

    ./dotenv/main.py:19:2: W605 invalid escape sequence '\$'
    ./dotenv/main.py:19:4: W605 invalid escape sequence '\{'
    ./dotenv/main.py:19:8: W605 invalid escape sequence '\}'
    ./dotenv/main.py:19:12: W605 invalid escape sequence '\}'
  • Loading branch information
bbc2 committed Nov 14, 2018
commit 3ae78218f06c3e5c6a86abca4708fbaf24b3f1c4
2 changes: 1 addition & 1 deletion dotenv/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from .compat import StringIO, PY2, WIN, text_type

__escape_decoder = codecs.getdecoder('unicode_escape')
__posix_variable = re.compile('\$\{[^\}]*\}') # noqa
__posix_variable = re.compile(r'\$\{[^\}]*\}')


def decode_escaped(escaped):
Expand Down