3603: Clean up PySDK imports.
authorBrett Smith <brett@curoverse.com>
Wed, 12 Nov 2014 14:38:26 +0000 (09:38 -0500)
committerBrett Smith <brett@curoverse.com>
Wed, 12 Nov 2014 14:38:26 +0000 (09:38 -0500)
Sort; remove unused imports.

sdk/python/arvados/collection.py
sdk/python/arvados/stream.py

index a88f36d5750caf9ecc60ae33bfbf3fa1e1df6dfd..59dc49fbbc8fbcb21107f8cfca61c40bf6176a7a 100644 (file)
@@ -1,20 +1,6 @@
-import gflags
 import logging
 import os
-import pprint
-import sys
-import types
-import subprocess
-import json
-import UserDict
 import re
-import hashlib
-import string
-import bz2
-import zlib
-import fcntl
-import time
-import threading
 
 from collections import deque
 from stat import *
index 9b90cea2e07718ed6ef477cf6cca25c1acf64add..8f787b78436a7a24e3dea04cb68a18b5194d6869 100644 (file)
@@ -1,20 +1,9 @@
-import gflags
+import bz2
+import collections
+import hashlib
 import os
-import pprint
-import sys
-import types
-import subprocess
-import json
-import UserDict
 import re
-import hashlib
-import string
-import bz2
 import zlib
-import fcntl
-import time
-import threading
-import collections
 
 from arvados.retry import retry_method
 from keep import *
@@ -193,7 +182,7 @@ class StreamFileReader(object):
             data += newdata
             sol = 0
             while True:
-                eol = string.find(data, "\n", sol)
+                eol = data.find("\n", sol)
                 if eol < 0:
                     break
                 yield data[sol:eol+1]