Skip to content

Modified builder._enquote() to not use 'unicode-internal' #76

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ matrix:
- python: 3.5
- python: 3.6
- python: 3.7
- python: 3.8
sudo: true
- python: pypy
install:
Expand Down
1 change: 0 additions & 1 deletion crossplane/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ def _enquote(arg):
arg = ESCAPE_SEQUENCES_RE.sub(_replace_escape_sequences, arg)
arg = unicode(arg, 'utf-8')
else:
arg = codecs.decode(arg, 'unicode-internal')
arg = repr(arg).replace('\\\\', '\\')

return arg
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ addopts = -vv --showlocals --disable-warnings -rf -p no:warnings
testpaths = tests/

[tox]
envlist = py26, py27, py34, py35, py36, py37, pypy
envlist = py26, py27, py34, py35, py36, py37, pypy, py38
skipsdist = true

[testenv]
Expand Down