[med-svn] [Git][med-team/aegean][master] fix Python3 patch that broke unit tests
Sascha Steinbiss
gitlab at salsa.debian.org
Mon Sep 9 17:51:37 BST 2019
Sascha Steinbiss pushed to branch master at Debian Med / aegean
Commits:
b1ee5e5d by Sascha Steinbiss at 2019-09-09T16:51:03Z
fix Python3 patch that broke unit tests
- - - - -
1 changed file:
- debian/patches/2to3.patch
Changes:
=====================================
debian/patches/2to3.patch
=====================================
@@ -20,23 +20,6 @@ Description: Use 2to3 to convert from Python2 to Python3
import re
import sys
-@@ -24,14 +24,14 @@ class Peeker:
- def __iter__(self):
- return self
-
-- def next(self):
-+ def __next__(self):
- if self.buffer:
- return self.buffer.pop(0)
- else:
- return next(self.iter)
-
- def __next__(self):
-- return self.next()
-+ return next(self)
-
- def peek(self, n=0):
- """Return an item n entries ahead in the iteration."""
--- a/data/scripts/check-gff3.py
+++ b/data/scripts/check-gff3.py
@@ -1,4 +1,4 @@
@@ -54,7 +37,7 @@ Description: Use 2to3 to convert from Python2 to Python3
import re
import sys
-@@ -50,7 +50,7 @@ for line in sys.stdin:
+@@ -50,7 +50,7 @@
topleveltypes[values[2]] += 1
print('\n===== Types =====')
@@ -63,7 +46,7 @@ Description: Use 2to3 to convert from Python2 to Python3
featuretypes.sort()
for featuretype in featuretypes:
count = counts[featuretype]
-@@ -60,7 +60,7 @@ for featuretype in featuretypes:
+@@ -60,7 +60,7 @@
print('%s (%lu total, %lu top-level)' % (featuretype, count, topcount))
print('\n===== Relationships (child --> parent) =====')
View it on GitLab: https://salsa.debian.org/med-team/aegean/commit/b1ee5e5d4be9cfb6029eec750872ce6857194069
--
View it on GitLab: https://salsa.debian.org/med-team/aegean/commit/b1ee5e5d4be9cfb6029eec750872ce6857194069
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20190909/573ec6e2/attachment-0001.html>
More information about the debian-med-commit
mailing list