summaryrefslogtreecommitdiff
path: root/fastimport/parser.py
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@jelmer.uk>2021-04-10 15:25:19 +0100
committerJelmer Vernooij <jelmer@jelmer.uk>2021-04-10 15:25:19 +0100
commitda4b711c897b47903a3ecb3064b2f42ef0c24d5b (patch)
treeed5ce9bf88a809c9f826c03274cd3cee71a1d2dd /fastimport/parser.py
parent0107b92042bc1b03db2ea1c38b4e5439e2c6866b (diff)
downloadpython-fastimport-git-da4b711c897b47903a3ecb3064b2f42ef0c24d5b.tar.gz
Drop more python2 support.
Diffstat (limited to 'fastimport/parser.py')
-rw-r--r--fastimport/parser.py2
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)