Commit 7a993ec8 by Eric Coissac

Patch a wrong import in the file

parent 6170fac0
...@@ -33,10 +33,6 @@ from obitools.format.sequence import skipOnErrorIterator, skipfirst, only ...@@ -33,10 +33,6 @@ from obitools.format.sequence import skipOnErrorIterator, skipfirst, only
from obitools import BioSequence from obitools import BioSequence
from obitools.utils import FakeFile from obitools.utils import FakeFile
from glob import glob
from test.test_compiler import Toto
def binarySequenceIterator(lineiterator): def binarySequenceIterator(lineiterator):
f = FakeFile(lineiterator) f = FakeFile(lineiterator)
...@@ -263,9 +259,9 @@ def autoEntriesIterator(options): ...@@ -263,9 +259,9 @@ def autoEntriesIterator(options):
raise AssertionError,'file is not in fasta, fasta, embl, genbank or ecoPCR format' raise AssertionError,'file is not in fasta, fasta, embl, genbank or ecoPCR format'
if reader==binarySequenceIterator: if reader==binarySequenceIterator:
input = binarySequenceIterator(lineiterator) input = binarySequenceIterator(lineiterator) # @ReservedAssignment
else: else:
input = reader(chain([first],lineiterator)) input = reader(chain([first],lineiterator)) # @ReservedAssignment
return input return input
...@@ -325,7 +321,7 @@ def autoEntriesIterator(options): ...@@ -325,7 +321,7 @@ def autoEntriesIterator(options):
def sequenceWriterGenerator(options,output=sys.stdout): def sequenceWriterGenerator(options,output=sys.stdout):
class SequenceWriter: class SequenceWriter:
def __init__(self,options,file=sys.stdout): def __init__(self,options,file=sys.stdout): # @ReservedAssignment
self._format=None self._format=None
self._file=file self._file=file
self._upper=options.uppercase self._upper=options.uppercase
...@@ -350,7 +346,7 @@ def sequenceWriterGenerator(options,output=sys.stdout): ...@@ -350,7 +346,7 @@ def sequenceWriterGenerator(options,output=sys.stdout):
sys.exit(0) sys.exit(0)
class BinaryWriter: class BinaryWriter:
def __init__(self,options,file=sys.stdout): def __init__(self,options,file=sys.stdout): # @ReservedAssignment
self._file=file self._file=file
self._file.write("#!Pickle\n") self._file.write("#!Pickle\n")
def put(self,seq): def put(self,seq):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment