Permalink
Browse files

added debug var imports_processed

  • Loading branch information...
davidhalter committed Oct 23, 2012
1 parent 87f11b6 commit 47608b1f4da5a4aadbfa7a18310c77479118f3d3
Showing with 5 additions and 0 deletions.
  1. +5 −0 jedi/imports.py
View
@@ -13,6 +13,9 @@
import evaluate
import itertools
+# for debugging purposes only
+imports_processed = 0
+
class ModuleNotFound(Exception):
pass
@@ -184,6 +187,8 @@ def follow_str(ns, string):
for i in range(self.import_stmt.relative_count):
path = os.path.dirname(path)
+ global imports_processed
+ imports_processed += 1
if path is not None:
return imp.find_module(string, [path])
else:

0 comments on commit 47608b1

Please sign in to comment.