Skip to content
This repository
Browse code

Bio/TogoWS: PEP8 whitespace cleanup.

  • Loading branch information...
commit f540f9d279dedce6397bfbd208a8a1b96c570cfb 1 parent dd4f8e1
Christian Brueffer authored December 26, 2012 peterjc committed December 27, 2012

Showing 1 changed file with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. 6  Bio/TogoWS/__init__.py
6  Bio/TogoWS/__init__.py
@@ -191,7 +191,7 @@ def search_iter(db, query, limit=None, batch=100):
191 191
         batch = min(batch, remain)
192 192
         #print "%r left, asking for %r" % (remain, batch)
193 193
         ids = search(db, query, offset, batch).read().strip().split()
194  
-        assert len(ids)==batch, "Got %i, expected %i" % (len(ids), batch)
  194
+        assert len(ids) == batch, "Got %i, expected %i" % (len(ids), batch)
195 195
         #print "offset %i, %s ... %s" % (offset, ids[0], ids[-1])
196 196
         if ids == prev_ids:
197 197
             raise RuntimeError("Same search results for previous offset")
@@ -291,10 +291,10 @@ def convert(data, in_format, out_format):
291 291
     #TODO - Should we just accept a string not a handle? What about a filename?
292 292
     if hasattr(data, "read"):
293 293
         #Handle
294  
-        return _open(url, post={"data":data.read()})
  294
+        return _open(url, post={"data": data.read()})
295 295
     else:
296 296
         #String
297  
-        return _open(url, post={"data":data})
  297
+        return _open(url, post={"data": data})
298 298
 
299 299
 
300 300
 def _open(url, post=None):

0 notes on commit f540f9d

Please sign in to comment.
Something went wrong with that request. Please try again.