diff --git a/jedi/_compatibility.py b/jedi/_compatibility.py index 7ee82160..809f64f1 100644 --- a/jedi/_compatibility.py +++ b/jedi/_compatibility.py @@ -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 diff --git a/jedi/evaluate/docstrings.py b/jedi/evaluate/docstrings.py index f9c11412..4bbb0a06 100644 --- a/jedi/evaluate/docstrings.py +++ b/jedi/evaluate/docstrings.py @@ -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 []