Permalink
Browse files

a few pep8 improvements

  • Loading branch information...
1 parent 586dcc2 commit 576e53f771ca80c8b0b5a9febd3ba5405af4200b @davidhalter committed Nov 21, 2012
Showing with 4 additions and 3 deletions.
  1. +1 −0 jedi/builtin.py
  2. +0 −1 jedi/parsing.py
  3. +3 −2 test/regression.py
View
@@ -30,6 +30,7 @@ def check_virtual_env(sys_path):
check_virtual_env(p)
return p
+
class CachedModule(object):
"""
The base type for all modules, which is not to be confused with
View
@@ -304,7 +304,6 @@ def name(self):
self._name = Name(names, self.start_pos, self.end_pos, self)
return self._name
-
def is_builtin(self):
return not (self.path is None or self.path.endswith('.py'))
View
@@ -207,7 +207,7 @@ def test_unicode_script(self):
try:
s = unicode("import datetime; datetime.d")
except NameError:
- pass # python 3 has no unicode method
+ pass # python 3 has no unicode method
else:
assert len(self.complete(s))
@@ -218,7 +218,7 @@ def test_multibyte_script(self):
comment = utf8("# multi-byte comment あいうえお")
s = (unicode('%s\n%s') % (code, comment)).encode('utf-8')
except NameError:
- pass # python 3 has no unicode method
+ pass # python 3 has no unicode method
else:
assert len(self.complete(s, (1, len(code))))
@@ -234,6 +234,7 @@ def test_full_name(self):
assert self.complete('import os; os.path.join')[0].full_name \
== 'os.path.join'
+
class TestSpeed(Base):
def _check_speed(time_per_run, number=4, run_warm=True):
""" Speed checks should typically be very tolerant. Some machines are

0 comments on commit 576e53f

Please sign in to comment.