From c05629b3dee52b9119df88a6ffdb26edbcb9824c Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Wed, 22 May 2019 00:03:01 +0200 Subject: [PATCH] Adapt small changes in parso's FileIO --- jedi/_compatibility.py | 5 ++++- jedi/evaluate/names.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/jedi/_compatibility.py b/jedi/_compatibility.py index f6c1422f..9aa35620 100644 --- a/jedi/_compatibility.py +++ b/jedi/_compatibility.py @@ -98,7 +98,10 @@ class ZipFileIO(KnownContentFileIO): self._zip_path = zip_path def get_last_modified(self): - return os.path.getmtime(self._zip_path) + try: + return os.path.getmtime(self._zip_path) + except OSError: # Python 3 would probably only need FileNotFoundError + return None def _from_loader(loader, string): diff --git a/jedi/evaluate/names.py b/jedi/evaluate/names.py index 555ed0b0..23d7d79f 100644 --- a/jedi/evaluate/names.py +++ b/jedi/evaluate/names.py @@ -122,6 +122,7 @@ class TreeNameDefinition(AbstractTreeName): class ParamNameInterface(object): + # annotation default?! def get_kind(self): raise NotImplementedError