Fixing issues for PR unit testing and linting

This commit is contained in:
Kyle Ellrott
2015-12-23 12:30:20 -08:00
parent ddaa1189f7
commit 8f34f2a610
+2 -2
View File
@@ -11,7 +11,7 @@ def directory_hash_id( id ):
>>> directory_hash_id("777777777")
['000', '777', '777']
>>> directory_hash_id("135ee48a-4f51-470c-ae2f-ce8bd78799e6")
['1','3','5']
['1', '3', '5']
"""
s = str( id )
l = len( s )
@@ -26,5 +26,5 @@ def directory_hash_id( id ):
# Break into chunks of three
return [ padded[ i * 3 : (i + 1 ) * 3 ] for i in range( len( padded ) // 3 ) ]
else:
#assume it is a UUID
# assume it is a UUID
return list(iter(s[0:3]))