fix a bug about can not import ChineseAnalyzer with change tab to 4 wihte spaces under PEP8

This commit is contained in:
Honghe Wu 2014-02-15 19:32:29 +08:00
parent cc708de40c
commit 7720fbc1d8

4
jieba/analyse/__init__.py Normal file → Executable file
View File

@ -1,9 +1,9 @@
import jieba import jieba
import os import os
try: try:
from analyzer import ChineseAnalyzer from analyzer import ChineseAnalyzer
except ImportError: except ImportError:
pass pass
_curpath=os.path.normpath( os.path.join( os.getcwd(), os.path.dirname(__file__) ) ) _curpath=os.path.normpath( os.path.join( os.getcwd(), os.path.dirname(__file__) ) )
f_name = os.path.join(_curpath,"idf.txt") f_name = os.path.join(_curpath,"idf.txt")