Merge pull request #310 from cjmayo/writeln

Remove unnecessary unicode() from StatusLogger.writeln()
This commit is contained in:
anarcat 2019-10-01 09:36:25 -04:00 committed by GitHub
commit 07cf9c1c11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ class StatusLogger (object):
def writeln (self, msg):
"""Write status message and line break to file descriptor."""
self.fd.write(u"%s%s" % (msg, unicode(os.linesep)))
self.fd.write(u"%s%s" % (msg, os.linesep))
def flush (self):
"""Flush file descriptor."""