[Python-modules-commits] [stepic] 08/10: Fix missed spot in Python3 port
Scott Kitterman
kitterman at moszumanska.debian.org
Sat Jan 6 08:22:00 UTC 2018
This is an automated email from the git hooks/post-receive script.
kitterman pushed a commit to branch debian/master
in repository stepic.
commit 4523c7daa667685a2cd566065bd1cfcc94abfa19
Author: Scott Kitterman <scott at kitterman.com>
Date: Sat Jan 6 03:04:16 2018 -0500
Fix missed spot in Python3 port
---
debian/patches/0004-Port-to-python3.patch | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/debian/patches/0004-Port-to-python3.patch b/debian/patches/0004-Port-to-python3.patch
index 8711675..ab9c7af 100644
--- a/debian/patches/0004-Port-to-python3.patch
+++ b/debian/patches/0004-Port-to-python3.patch
@@ -3,12 +3,12 @@ Date: Sat, 6 Jan 2018 01:57:09 -0500
Subject: Port to python3
---
- stepic | 14 ++++++++------
+ stepic | 16 +++++++++-------
stepic.py | 14 +++++++-------
- 2 files changed, 15 insertions(+), 13 deletions(-)
+ 2 files changed, 16 insertions(+), 14 deletions(-)
diff --git a/stepic b/stepic
-index 38deb48..2337344 100755
+index 38deb48..26f0a59 100755
--- a/stepic
+++ b/stepic
@@ -1,4 +1,4 @@
@@ -26,7 +26,15 @@ index 38deb48..2337344 100755
import stepic
-@@ -73,13 +73,15 @@ def main():
+@@ -66,20 +66,22 @@ def main():
+ sys.exit(2)
+ if options.decode == options.encode:
+ parser.print_usage()
+- print >> sys.stderr, 'choose either encode or decode'
++ sys.stderr.write('choose either encode or decode')
+
+ try:
+ if options.decode:
decode_files(options.image_in, options.out)
elif options.encode:
encode_files(options.image_in, options.data_in, options.out, options.format)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/stepic.git
More information about the Python-modules-commits
mailing list