We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d8271d commit cfca799Copy full SHA for cfca799
tests/integration_test_data_objects.py
@@ -118,9 +118,7 @@ def test_manager_create(self):
118
119
@classmethod
120
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:
+ if not isinstance(file_object, six.string_types):
124
file_content = file_object.read()
125
return md5(file_content).hexdigest()
126
0 commit comments