[Reproducible-commits] [diffoscope] 01/11: Keep only Python 3 code in diffoscope.changes
Jérémy Bobbio
lunar at moszumanska.debian.org
Sat Nov 7 16:29:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository diffoscope.
commit 467d734883760fae446452ec830e2d4d997e26d7
Author: Jérémy Bobbio <lunar at debian.org>
Date: Tue Sep 22 23:27:55 2015 +0200
Keep only Python 3 code in diffoscope.changes
---
diffoscope/changes.py | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/diffoscope/changes.py b/diffoscope/changes.py
index 37426e9..b671101 100644
--- a/diffoscope/changes.py
+++ b/diffoscope/changes.py
@@ -91,10 +91,6 @@ class Changes(object):
if len(self._data) == 0:
raise ChangesFileException('Changes file could not be parsed.')
- self.is_python3 = False
- if sys.version_info[0] >= 3:
- self.is_python3 = True
-
def get_filename(self):
"""
Returns the filename from which the changes file was generated from.
@@ -264,12 +260,10 @@ class Changes(object):
"Unknown problem while verifying signature")
# contains verbose human readable GPG information
- if self.is_python3:
- gpg_output_stderr = str(gpg_output_stderr, encoding='utf8')
+ gpg_output_stderr = str(gpg_output_stderr, encoding='utf8')
print(gpg_output_stderr)
- if self.is_python3:
- gpg_output = gpg_output.decode(encoding='UTF-8')
+ gpg_output = gpg_output.decode(encoding='UTF-8')
if gpg_output.count('[GNUPG:] GOODSIG'):
pass
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list