浏览代码

Merge branch 'master' of github.com:ask/celery

Ask Solem 13 年之前
父节点
当前提交
0ac5bbdd85
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      setup.py

+ 1 - 3
setup.py

@@ -11,10 +11,8 @@ if sys.version_info < (2, 5):
 try:
     orig_path = sys.path[:]
     for path in (os.path.curdir, os.getcwd()):
-        try:
+        if path in sys.path:
             sys.path.remove(path)
-        except ValueError:
-            pass
     try:
         import celery.app
         import imp