We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aa22bc commit f01ae6bCopy full SHA for f01ae6b
1 file changed
coreapi/compat.py
@@ -29,6 +29,7 @@ def is_file(obj):
29
def is_file(obj):
30
return isinstance(obj, IOBase)
31
32
+
33
def force_bytes(string):
34
if isinstance(string, string_types):
35
return string.encode('utf-8')
0 commit comments