We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f972df commit ed1fa64Copy full SHA for ed1fa64
jieba/__init__.py
@@ -301,7 +301,7 @@ def enable_parallel(processnum):
301
global pool,cut,cut_for_search
302
if os.name=='nt':
303
raise Exception("jieba: parallel mode only supports posix system")
304
- if sys.version_info.major==2 and sys.version_info.minor<6:
+ if sys.version_info[0]==2 and sys.version_info[1]<6:
305
raise Exception("jieba: the parallel feature needs Python version>2.5 ")
306
from multiprocessing import Pool,cpu_count
307
if processnum==None:
0 commit comments