File: remove-six.patch

package info (click to toggle)
python-bcbio-gff 0.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 392 kB
  • sloc: python: 1,754; sh: 13; makefile: 5
file content (44 lines) | stat: -rw-r--r-- 1,314 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
From: Alexandre Detiste <tchet@debian.org>
Forwarded: no

--- a/BCBio/GFF/GFFOutput.py
+++ b/BCBio/GFF/GFFOutput.py
@@ -3,7 +3,7 @@
 The target format is GFF3, the current GFF standard:
     http://www.sequenceontology.org/gff3.shtml
 """
-from six.moves import urllib
+import urllib.parse
 
 from Bio import SeqIO
 
--- a/BCBio/GFF/GFFParser.py
+++ b/BCBio/GFF/GFFParser.py
@@ -21,8 +21,7 @@
 import collections
 import io
 import itertools
-import six
-from six.moves import urllib
+import urllib.parse
 # Make defaultdict compatible with versions of python older than 2.4
 try:
     collections.defaultdict
@@ -816,7 +815,7 @@
         if hasattr(in_file, "read"):
             need_close = False
             in_handle = in_file
-            if six.PY3 and not isinstance(in_handle, io.TextIOBase):
+            if not isinstance(in_handle, io.TextIOBase):
                 raise TypeError('input handle must be opened in text mode')
         else:
             need_close = True
--- a/setup.py
+++ b/setup.py
@@ -18,5 +18,5 @@
       description="Read and write Generic Feature Format (GFF) with Biopython integration.",
       url="https://github.com/chapmanb/bcbb/tree/master/gff",
       packages=find_packages(),
-      install_requires=["six", "biopython"]
+      install_requires=["biopython"]
       )