Permalink
Browse files

Avoid multiple imports on one line.

Fixes PEP8 E401 multiple imports on one line
  • Loading branch information...
1 parent b87e3f5 commit 536cc0e9885541507b97f07f636dd5c4194cdfb5 @cbrueffer cbrueffer committed Dec 3, 2012
@@ -19,7 +19,8 @@
The finished command line strings are then normally invoked via the built-in
Python module subprocess.
"""
-import os, sys
+import os
+import sys
import StringIO
import subprocess
import re
@@ -2083,7 +2083,8 @@ def _invoke_blast(cline):
Expects a command line wrapper object from Bio.Blast.Applications
"""
- import subprocess, sys
+ import subprocess
+ import sys
blast_cmd = cline.program_name
if not os.path.exists(blast_cmd):
raise ValueError("BLAST executable does not exist at %s" % blast_cmd)
View
@@ -61,7 +61,8 @@ def qblast(program, database, sequence,
http://www.ncbi.nlm.nih.gov/BLAST/blast_overview.html
"""
- import urllib, urllib2
+ import urllib
+ import urllib2
import time
assert program in ['blastn', 'blastp', 'blastx', 'tblastn', 'tblastx']
View
@@ -68,7 +68,10 @@
_open Internally used function.
"""
-import urllib, urllib2, time, warnings
+import urllib
+import urllib2
+import time
+import warnings
import os.path
from Bio._py3k import _binary_to_string_handle
View
@@ -12,7 +12,10 @@
# For with in Python/Jython 2.5
from __future__ import with_statement
-import sys, math, random, copy
+import copy
+import math
+import random
+import sys
from Bio import File
from Bio.Alphabet import IUPAC
View
@@ -12,7 +12,8 @@
nodes).
"""
-import sys, random
+import random
+import sys
import Nodes
PRECISION_BRANCHLENGTH=6
View
@@ -5,7 +5,8 @@
# NACCESS interface adapted from Bio/PDB/DSSP.py
-import os, tempfile
+import os
+import tempfile
from Bio.PDB.PDBIO import PDBIO
from Bio.PDB.AbstractPropertyMap import AbstractResiduePropertyMap, AbstractAtomPropertyMap
View
@@ -903,7 +903,8 @@ def _open(cgi, params={}, get=1):
simple error checking, and will raise an IOError if it encounters one.
"""
- import urllib, urllib2
+ import urllib
+ import urllib2
# Open a handle to SCOP.
options = urllib.urlencode(params)
try:
View
@@ -121,7 +121,8 @@ def main():
print "coords: %s" % stats.coords
def _test(*args, **keywds):
- import doctest, sys
+ import doctest
+ import sys
doctest.testmod(sys.modules[__name__], *args, **keywds)
if __name__ == "__main__":
View
@@ -29,10 +29,10 @@
db_index.Get_OS_OC_GN('EFTU_ECOLI')
"""
-
-
-import string, re
-import os, sys
+import os
+import re
+import string
+import sys
import gdbm
class DB_Index:
@@ -5,8 +5,9 @@
# - Let user specify a sequence file to BLAST on the net.
# - Script should help debug connection to NCBI website.
-import os, sys
+import os
import re
+import sys
import getopt
import traceback
@@ -10,8 +10,10 @@
# Jan.O.Andersson@home.se
# File: nextorf.py
+import commands
import re
-import os, sys, commands
+import sys
+import os
import getopt
from Bio import SeqIO
@@ -4,7 +4,9 @@
# thomas@cbs.dtu.dk, http://www.cbs.dtu.dk/thomas
# File: xbb_blast.py
-import os, sys, glob
+import glob
+import os
+import sys
from threading import *
import commands
from Tkinter import *
@@ -4,11 +4,15 @@
# Thomas.Sicheritz@molbio.uu.se, http://evolution.bmc.uu.se/~thomas
# File: xbb_blastbg.py
-import posixpath, posix
-import os, sys, commands
+import commands
+import posix
+import posixpath
+import os
+import sys
sys.path.insert(0, '.')
-import Queue, threading
+import Queue
import tempfile
+import threading
from Tkinter import *
from xbb_utils import NotePad
@@ -4,8 +4,10 @@
# thomas@cbs.dtu.dk, http://www.cbs.dtu.dk/thomas
# File: xbb_search.py
+import commands
+import os
import re
-import os, sys, commands
+import sys
sys.path.insert(0, '.')
from Tkinter import *
from tkColorChooser import askcolor
@@ -7,7 +7,8 @@
# database, and if it finds them then do some standalone blast searches
# using Bio.Blast.NCBIStandalone to call the command line tool.
-import os, sys
+import os
+import sys
import subprocess
import unittest
View
@@ -6,8 +6,9 @@
__version__ = "$Revision: 1.11 $"
import cStringIO
-import doctest, unittest
+import doctest
import sys
+import unittest
if 'requires_wise' in sys.modules:
del sys.modules['requires_wise']
View
@@ -1,7 +1,8 @@
"""Tests the basic functionality of the GEO parsers.
"""
-import os, sys
+import os
+import sys
import Bio.Geo
View
@@ -5,7 +5,8 @@
__version__ = "$Revision: 1.6 $"
-import doctest, unittest
+import doctest
+import unittest
import random
import sys

0 comments on commit 536cc0e

Please sign in to comment.