mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fixing issues for PR unit testing and linting
This commit is contained in:
@@ -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]))
|
||||
|
||||
Reference in New Issue
Block a user