Skip to content

Commit cfca799

Browse files
committed
[HOT-FIX] correct get_md5 method;
1 parent 5d8271d commit cfca799

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/integration_test_data_objects.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,7 @@ def test_manager_create(self):
118118

119119
@classmethod
120120
def get_file_md5(cls, file_object):
121-
if isinstance(file_object, six.string_types):
122-
file_content = file_object.encode('utf-8')
123-
else:
121+
if not isinstance(file_object, six.string_types):
124122
file_content = file_object.read()
125123
return md5(file_content).hexdigest()
126124

0 commit comments

Comments
 (0)