summaryrefslogtreecommitdiff
path: root/community/ktoblzcheck/ktoblzcheck-python3.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/ktoblzcheck/ktoblzcheck-python3.patch')
-rw-r--r--community/ktoblzcheck/ktoblzcheck-python3.patch50
1 files changed, 0 insertions, 50 deletions
diff --git a/community/ktoblzcheck/ktoblzcheck-python3.patch b/community/ktoblzcheck/ktoblzcheck-python3.patch
index c94e0a021..5bfc53275 100644
--- a/community/ktoblzcheck/ktoblzcheck-python3.patch
+++ b/community/ktoblzcheck/ktoblzcheck-python3.patch
@@ -1,53 +1,3 @@
-diff -ur ktoblzcheck-1.28/py-compile ktoblzcheck-1.28.my/py-compile
---- ktoblzcheck-1.28/py-compile 2008-03-11 09:29:51.000000000 +0000
-+++ ktoblzcheck-1.28.my/py-compile 2010-09-20 09:09:53.000000000 +0000
-@@ -107,34 +107,30 @@
-
- files = '''$files'''
-
--print 'Byte-compiling python modules...'
--for file in string.split(files):
-+print('Byte-compiling python modules...')
-+for file in files.split():
- $pathtrans
- $filetrans
-- if not os.path.exists(filepath) or not (len(filepath) >= 3
-- and filepath[-3:] == '.py'):
-- continue
-- print file,
-- sys.stdout.flush()
-+ if not os.path.exists(filepath) or not (len(filepath) >= 3 and filepath[-3:] == '.py'):
-+ continue
-+ print(file, sys.stdout.flush())
- py_compile.compile(filepath, filepath + 'c', path)
--print" || exit $?
-+print()" || exit $?
-
- # this will fail for python < 1.5, but that doesn't matter ...
- $PYTHON -O -c "
- import sys, os, string, py_compile
-
- files = '''$files'''
--print 'Byte-compiling python modules (optimized versions) ...'
--for file in string.split(files):
-+print('Byte-compiling python modules (optimized versions) ...')
-+for file in files.split():
- $pathtrans
- $filetrans
-- if not os.path.exists(filepath) or not (len(filepath) >= 3
-- and filepath[-3:] == '.py'):
-- continue
-- print file,
-- sys.stdout.flush()
-+ if not os.path.exists(filepath) or not (len(filepath) >= 3 and filepath[-3:] == '.py'):
-+ continue
-+ print(file,sys.stdout.flush())
- py_compile.compile(filepath, filepath + 'o', path)
--print" 2>/dev/null || :
-+print()" 2>/dev/null || :
-
- # Local Variables:
- # mode: shell-script
diff -ur ktoblzcheck-1.28/src/python/ktoblzcheck.py ktoblzcheck-1.28.my/src/python/ktoblzcheck.py
--- ktoblzcheck-1.28/src/python/ktoblzcheck.py 2008-08-12 16:48:54.000000000 +0000
+++ ktoblzcheck-1.28.my/src/python/ktoblzcheck.py 2010-09-20 09:08:36.000000000 +0000