Change _py3k check to belong in util.py
parent
a3e4cb661b
commit
0a19ba201c
|
@ -160,7 +160,7 @@ def _copy_data(instream, outstream):
|
||||||
|
|
||||||
def _make_binary_stream(s, encoding):
|
def _make_binary_stream(s, encoding):
|
||||||
try:
|
try:
|
||||||
if _py3k:
|
if util._py3k:
|
||||||
if isinstance(s, str):
|
if isinstance(s, str):
|
||||||
s = s.encode(encoding)
|
s = s.encode(encoding)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue