[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [pytorctl/master] Damnit all to hell.



commit 14c250dbd97c98a439eb67cb1ab5a28527d02333
Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date:   Fri Feb 25 18:44:52 2011 -0800

    Damnit all to hell.
---
 TorUtil.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/TorUtil.py b/TorUtil.py
index 46a561d..9e28779 100644
--- a/TorUtil.py
+++ b/TorUtil.py
@@ -339,7 +339,7 @@ def plog(level, msg, *args):
     if not logfile:
       logfile = sys.stdout
     # HACK: if logfile is a string, assume is it the desired filename.
-    if isinstance(logfile, str) or isinstance(logfile, unicode):
+    if isinstance(logfile, basestring):
       f = logging.FileHandler(logfile)
       f.setFormatter(formatter)
       logger.addHandler(f)

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits