Skip to content

Commit ed1fa64

Browse files
committedJul 29, 2013
fix a bug. use sys.version_info.major can't be used in Python2.5
1 parent 0f972df commit ed1fa64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎jieba/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ def enable_parallel(processnum):
301301
global pool,cut,cut_for_search
302302
if os.name=='nt':
303303
raise Exception("jieba: parallel mode only supports posix system")
304-
if sys.version_info.major==2 and sys.version_info.minor<6:
304+
if sys.version_info[0]==2 and sys.version_info[1]<6:
305305
raise Exception("jieba: the parallel feature needs Python version>2.5 ")
306306
from multiprocessing import Pool,cpu_count
307307
if processnum==None:

0 commit comments

Comments
 (0)