Skip to content

Commit

Permalink
Fix SameEnvironment
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed committed Jun 30, 2018
1 parent f872bcc commit 2bb32e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions jedi/api/environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ def __init__(self, executable):
self.executable = self.executable.decode()
self.path = self.path.decode()


def __repr__(self):
version = '.'.join(str(i) for i in self.version_info)
return '<%s: %s in %s>' % (self.__class__.__name__, version, self.path)
Expand Down Expand Up @@ -114,10 +113,9 @@ def get_sys_path(self):

class SameEnvironment(Environment):
def __init__(self):
super(SameEnvironment, self).__init__(sys.executable)

def _get_version(self):
return _VersionInfo(*sys.version_info[:3])
self.executable = sys.executable
self.path = sys.prefix
self.version_info = _VersionInfo(*sys.version_info[:3])


class InterpreterEnvironment(_BaseEnvironment):
Expand Down

0 comments on commit 2bb32e5

Please sign in to comment.