diff options
author | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2012-05-02 00:28:15 +0000 |
---|---|---|
committer | luke@maurits.id.au <luke@maurits.id.au@0f58610c-415a-11de-9c03-5d6cfad8e937> | 2012-05-02 00:28:15 +0000 |
commit | 7a9ade38321e06d8d27bd838d284c7c1f3469a1e (patch) | |
tree | 404eb6c3287ff17782b5dcbdd70f50e2794847c5 | |
parent | 4f569f4b84fca3c4fee126541b1a96893414860f (diff) | |
download | python-prettytable-7a9ade38321e06d8d27bd838d284c7c1f3469a1e.tar.gz |
Very minor tidy up of Python 3 compatibility stuff.
git-svn-id: http://prettytable.googlecode.com/svn/trunk@51 0f58610c-415a-11de-9c03-5d6cfad8e937
-rw-r--r-- | src/prettytable.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/prettytable.py b/src/prettytable.py index 17e5a82..7047932 100644 --- a/src/prettytable.py +++ b/src/prettytable.py @@ -32,19 +32,17 @@ __version__ = "TRUNK" import sys +import copy +import random +import textwrap -py3k = sys.version_info >= (3,0,0) +py3k = sys.version_info[0] >= 3 if py3k: unicode = str basestring = str - -if py3k: from html import escape else: from cgi import escape -import copy -import random -import textwrap # hrule styles FRAME = 0 |