|
@@ -29,12 +29,12 @@ using print to generate the output"""
|
|
|
def printf(string, outputlevel, descriptor="stdout", level="default"):
|
|
|
if descriptor == "stdout":
|
|
|
if level == "default" and outputlevel == "default":
|
|
|
- if sys.version_info >= (3,0):
|
|
|
+ if sys.version_info >= (3, 0):
|
|
|
print(string)
|
|
|
else:
|
|
|
print(string.encode("utf8"))
|
|
|
elif level == "verbose":
|
|
|
- if sys.version_info >= (3,0):
|
|
|
+ if sys.version_info >= (3, 0):
|
|
|
print(string)
|
|
|
else:
|
|
|
print(string.encode("utf8"))
|
|
@@ -42,12 +42,12 @@ def printf(string, outputlevel, descriptor="stdout", level="default"):
|
|
|
pass
|
|
|
elif descriptor == "stderr":
|
|
|
if level == "default" and outputlevel == "default":
|
|
|
- if sys.version_info >= (3,0):
|
|
|
+ if sys.version_info >= (3, 0):
|
|
|
print (string, file=sys.stderr)
|
|
|
else:
|
|
|
print(string.encode("utf8"), file=sys.stderr)
|
|
|
elif level == "verbose":
|
|
|
- if sys.version_info >= (3,0):
|
|
|
+ if sys.version_info >= (3, 0):
|
|
|
print (string, file=sys.stderr)
|
|
|
else:
|
|
|
print(string.encode("utf8"), file=sys.stderr)
|