From 4f088bccff7fb4c9ede9bf77e9275cc73f6716fb Mon Sep 17 00:00:00 2001 From: Daniele Tricoli Date: Sat, 11 May 2013 13:08:01 +0000 Subject: Fix syntax error 'unicodeescape' codec can't decode bytes in position 130-132 for Python3 --- debian/patches/04_relax_nosetests_options.patch | 4 ++-- .../patches/05_fix_python3_syntax_error_in_ntlmpool.patch | 15 +++++++++++++++ debian/patches/series | 5 +++-- 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 debian/patches/05_fix_python3_syntax_error_in_ntlmpool.patch (limited to 'debian/patches') diff --git a/debian/patches/04_relax_nosetests_options.patch b/debian/patches/04_relax_nosetests_options.patch index 5305efa..29f47c6 100644 --- a/debian/patches/04_relax_nosetests_options.patch +++ b/debian/patches/04_relax_nosetests_options.patch @@ -15,6 +15,6 @@ Last-Update: 2013-05-11 cover-package = urllib3 -cover-min-percentage = 100 +#cover-min-percentage = 100 - + [egg_info] - tag_build = + tag_build = diff --git a/debian/patches/05_fix_python3_syntax_error_in_ntlmpool.patch b/debian/patches/05_fix_python3_syntax_error_in_ntlmpool.patch new file mode 100644 index 0000000..7b90098 --- /dev/null +++ b/debian/patches/05_fix_python3_syntax_error_in_ntlmpool.patch @@ -0,0 +1,15 @@ +Origin: https://github.com/shazow/urllib3/issues/177 +Description: Fix syntax error 'unicodeescape' codec can't decode bytes in + position 130-132 for Python3 + +--- a/urllib3/contrib/ntlmpool.py ++++ b/urllib3/contrib/ntlmpool.py +@@ -33,7 +33,7 @@ + def __init__(self, user, pw, authurl, *args, **kwargs): + """ + authurl is a random URL on the server that is protected by NTLM. +- user is the Windows user, probably in the DOMAIN\username format. ++ user is the Windows user, probably in the DOMAIN\\username format. + pw is the password for the user. + """ + super(NTLMConnectionPool, self).__init__(*args, **kwargs) diff --git a/debian/patches/series b/debian/patches/series index c264be2..a8d0b0b 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,4 +1,5 @@ -04_relax_nosetests_options.patch -03_no-setuptools.patch 01_do-not-use-embedded-python-six.patch 02_require-cert-verification.patch +03_no-setuptools.patch +04_relax_nosetests_options.patch +05_fix_python3_syntax_error_in_ntlmpool.patch -- cgit v1.2.3