Permalink
Browse files

some slight cleanup

  • Loading branch information...
1 parent 5e2053f commit 1f4b2936a9170fadcf2f0bda04bf516dca085cea @jt6211 committed Mar 21, 2013
View
No changes.
@@ -18,7 +18,7 @@
from pyaccumulo.iterators import *
from pyaccumulo.proxy.ttypes import IteratorSetting, IteratorScope
-from util import hashcode
+from examples.util import hashcode
import hashlib, re
import settings
import sys
@@ -73,4 +73,4 @@ def write_mutations(writer, shard, uuid, value, tokens):
uuid = get_uuid(filePath)
with open( filePath, 'r' ) as f:
write_mutations(wr, get_shard(uuid), uuid, filePath, get_tokens(f))
-wr.close()
+wr.close()
@@ -18,7 +18,7 @@
from pyaccumulo.iterators import *
from pyaccumulo.proxy.ttypes import IteratorSetting, IteratorScope
-from util import hashcode
+from examples.util import hashcode
import hashlib, re
import settings
import sys
@@ -18,7 +18,7 @@
from pyaccumulo.iterators import *
from pyaccumulo.proxy.ttypes import IteratorSetting, IteratorScope
-from util import hashcode
+from examples.util import hashcode
import hashlib, re
import settings
import sys
@@ -76,4 +76,4 @@ def write_mutations(writer, shard, uuid, value, tokens):
uuid = get_uuid(filePath)
with open( filePath, 'r' ) as f:
write_mutations(wr, get_shard(uuid), uuid, filePath, get_tokens(f))
-wr.close()
+wr.close()
@@ -18,7 +18,7 @@
from pyaccumulo.iterators import *
from pyaccumulo.proxy.ttypes import IteratorSetting, IteratorScope
-from util import hashcode
+from examples.util import hashcode
import hashlib, re
import settings
import sys
View
@@ -18,7 +18,7 @@
from pyaccumulo.iterators import *
from pyaccumulo.proxy.ttypes import IteratorSetting, IteratorScope
-from util import hashcode
+from examples.util import hashcode
import hashlib, re
import settings
@@ -2,4 +2,5 @@ def hashcode(s):
h = 0
for c in s:
h = (31 * h + ord(c)) & 0xFFFFFFFF
- return ((h + 0x80000000) & 0xFFFFFFFF) - 0x80000000
+ return ((h + 0x80000000) & 0xFFFFFFFF) - 0x80000000
+

0 comments on commit 1f4b293

Please sign in to comment.