Please sign in to comment.
PYTHON 3 SUPPORT HAS BEEN ADDED!
All throughout the code things have been updated here and there in order to support Python 3. A few things might be a little rough around the edges and it *does* take a long time for the 2to3 tool to work its magic when you run "python3 setup.py install" but by golly it *works*! Not only does it work but it is FAST. Preliminary benchmarks show Gate One using markdely less memory and CPU running under Python 3.2 (I can't wait to try 3.3!) than it does with Python 2.7. I'll be tweaking things here and there in the next few commits (related to Python 3 support) and I wouldn't be surprised if I can make it perform even better. setup.py: Support for Python 3 "just works". Though it does take a lot longer to install if you run "python3 setup.py install" (since the whole /opt/gateone dir must be walked converting everything to work with Python 3). terminal.py: Updated the version string to 1.1. utils.py: Updated the version string to 1.1. utils.py: Modified human_readable_bytes() to use "nbytes" as the argument instead of "bytes" to avoid the use of a python built-in. utils.py: Using Tornado's utf8() and to_unicode() functions in a few places to make it easier to support both python2.6+ and python3+ simultaneously. Bookmarks Plugin: The use of html5lib has been changed to be a dynamic import (where it's used). I'm going to see if I can figure out a way to get importing/exporting bookmarks working without this module to make "python3 setup.py install" go faster (most of the time is spent converting html5lib!). SSH Plugin: ssh_connect.py: The get_identities() function now double-checks that identities exist before it returns them as a list. This means you won't see them when ssh_connect.py prints that "The following identities will be used..." message (which is good and logical). The next time the user marks an identity as default the .default_ids file will get cleaned up automatically.
- Loading branch information...
Showing with 125 additions and 75 deletions.