[tor-commits] [stem/master] Making check_requirements() require python 2.6

atagar at torproject.org atagar at torproject.org
Sun Apr 14 04:33:47 UTC 2013


commit 00edd58211c9f67a0499aa6c04d5c4fa97580708
Author: Damian Johnson <atagar at torproject.org>
Date:   Sat Apr 13 10:00:37 2013 -0700

    Making check_requirements() require python 2.6
    
    Oops, the prereq module was checking for python 2.5. We're now only compatable
    with 2.6 and above.
---
 stem/prereq.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/stem/prereq.py b/stem/prereq.py
index 4c0ffcd..41ba4b9 100644
--- a/stem/prereq.py
+++ b/stem/prereq.py
@@ -39,8 +39,8 @@ def check_requirements():
 
   major_version, minor_version = sys.version_info[0:2]
 
-  if major_version < 2 or (major_version == 2 and minor_version < 5):
-    raise ImportError("stem requires python version 2.5 or greater")
+  if major_version < 2 or (major_version == 2 and minor_version < 6):
+    raise ImportError("stem requires python version 2.6 or greater")
 
 
 def is_python_26():





More information about the tor-commits mailing list