Remove use of six (not listed in dependencies)

This commit is contained in:
Oliver Bristow 2018-08-01 23:41:54 +01:00
commit d0ad9850ad
No known key found for this signature in database
GPG key ID: FF13F04BD2C87186

View file

@ -18,7 +18,6 @@ import string
import hashlib
import functools
import argparse
import six
# set the SIGPIPE handler to kill the program instead of
# ending in a write error when a broken pipe occurs
@ -29,6 +28,8 @@ signal.signal( signal.SIGPIPE, signal.SIG_DFL )
# Global variable(s)
###############################################################################
PY2 = sys.version_info.major == 2
context = {}
debug = False
@ -699,7 +700,7 @@ def write(colored, stream = sys.stdout):
"""
Write "colored" on sys.stdout, then flush.
"""
if six.PY2: # If Python 2.x: force unicode
if PY2: # If Python 2.x: force unicode
if isinstance(colored, unicode):
colored = colored.encode('utf-8')
try: