From 7720fbc1d8a81430c38598fd96b95d8b4da4a74c Mon Sep 17 00:00:00 2001 From: Honghe Wu Date: Sat, 15 Feb 2014 19:32:29 +0800 Subject: [PATCH] fix a bug about can not import ChineseAnalyzer with change tab to 4 wihte spaces under PEP8 --- jieba/analyse/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 jieba/analyse/__init__.py diff --git a/jieba/analyse/__init__.py b/jieba/analyse/__init__.py old mode 100644 new mode 100755 index b34fc441..d7bff088 --- a/jieba/analyse/__init__.py +++ b/jieba/analyse/__init__.py @@ -1,9 +1,9 @@ import jieba import os try: - from analyzer import ChineseAnalyzer + from analyzer import ChineseAnalyzer except ImportError: - pass + pass _curpath=os.path.normpath( os.path.join( os.getcwd(), os.path.dirname(__file__) ) ) f_name = os.path.join(_curpath,"idf.txt")