Browse Source

Use sys.version_info[0] to detect Python 3
Closes #642

Mike Naberezny 9 years ago
parent
commit
0492470884
1 changed files with 2 additions and 1 deletions
  1. 2 1
      supervisor/compat.py

+ 2 - 1
supervisor/compat.py

@@ -1,7 +1,8 @@
 from __future__ import absolute_import
 
 import sys
-PY3 = sys.version>'3'
+
+PY3 = sys.version_info[0] == 3
 
 if PY3: # pragma: no cover
     long = int