diff options
author | Jelmer Vernooij <jelmer@jelmer.uk> | 2021-04-10 15:25:19 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@jelmer.uk> | 2021-04-10 15:25:19 +0100 |
commit | da4b711c897b47903a3ecb3064b2f42ef0c24d5b (patch) | |
tree | ed5ce9bf88a809c9f826c03274cd3cee71a1d2dd /fastimport/parser.py | |
parent | 0107b92042bc1b03db2ea1c38b4e5439e2c6866b (diff) | |
download | python-fastimport-git-da4b711c897b47903a3ecb3064b2f42ef0c24d5b.tar.gz |
Drop more python2 support.
Diffstat (limited to 'fastimport/parser.py')
-rw-r--r-- | fastimport/parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fastimport/parser.py b/fastimport/parser.py index 0a88d84..ceee1b4 100644 --- a/fastimport/parser.py +++ b/fastimport/parser.py @@ -649,7 +649,7 @@ def _unquote_c_string(s): codecs.decode(match.group(0), 'unicode-escape') ) - if sys.version_info[0] >= 3 and isinstance(s, bytes): + if isinstance(s, bytes): return ESCAPE_SEQUENCE_BYTES_RE.sub(decode_match, s) else: return ESCAPE_SEQUENCE_RE.sub(decode_match, s) |