Displaying 2 results from an estimated 2 matches for "f0ac008".
2014 Jan 15
0
[PATCH 2/4] hivex: python: Fix encoding for "special" test script
Hopefully. Python's unicode history is a mess.
---
 python/t/130-special.py | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)
diff --git a/python/t/130-special.py b/python/t/130-special.py
index 7adb9d5..f0ac008 100755
--- a/python/t/130-special.py
+++ b/python/t/130-special.py
@@ -1,4 +1,13 @@
 # coding: utf-8
+# http://stackoverflow.com/questions/6625782/unicode-literals-that-work-in-python-3-and-2
+import sys
+if sys.version < '3':
+    import codecs
+    def u(x):
+        return codecs.unic...
2014 Jan 15
4
[PATCH 1/4] hivex: Python 2.6 does not have sysconfig.
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 6785037..203f34f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -329,8 +329,8 @@ AS_IF([test "x$enable_python" != "xno"],
 
             AC_MSG_CHECKING([for Python extension suffix (PEP-3149)])
             if test -z "$PYTHON_EXT_SUFFIX"; then