1
0
forked from VimPlug/jedi

Use automatic formatters

This commit is contained in:
Hugo
2018-01-04 16:29:35 +02:00
parent 7c31ea9042
commit 7821203d8e
2 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ def find_module_py33(string, path=None, loader=None, fullname=None):
raise ImportError("Originally " + repr(e))
if loader is None:
raise ImportError("Couldn't find a loader for {0}".format(string))
raise ImportError("Couldn't find a loader for {}".format(string))
try:
is_package = loader.is_package(string)
@@ -135,7 +135,7 @@ def find_module_pre_py33(string, path=None, fullname=None):
return (file, module_path, is_package)
except ImportError:
pass
raise ImportError("No module named {0}".format(string))
raise ImportError("No module named {}".format(string))
find_module = find_module_py33 if is_py33 else find_module_pre_py33

View File

@@ -179,7 +179,7 @@ def _evaluate_for_statement_string(module_context, string):
Need this docstring so that if the below part is not valid Python this
is still a function.
'''
{0}
{}
"""))
if string is None:
return []