prompt-toolkit / pymux

A terminal multiplexer (like tmux) in Python
BSD 3-Clause "New" or "Revised" License
1.45k stars 82 forks source link

Avoid use of sys.version for version checks #7

Closed svisser closed 8 years ago

svisser commented 8 years ago

The string sys.version contains version information but it can't be relied upon to always contain the version number at the beginning of the string (across Python interpreters). See also the note in the documentation: https://docs.python.org/3/library/sys.html#sys.version.

jonathanslenders commented 8 years ago

Hi @svisser,

Thank you for this pull request! I just discovered that this applies to both Python 2.6 and 2.7, so I made this commit instead: https://github.com/jonathanslenders/pymux/commit/417802056a93116fca8894a4952c5272f3bbc730