Skip to content

Commit

Permalink
Merge pull request #612 from marc1006/master
Browse files Browse the repository at this point in the history
Some smaller fixes
  • Loading branch information
dw authored Aug 8, 2019
2 parents 8eeff66 + 2ed8395 commit c6de090
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mitogen/compat/pkgutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def extend_path(path, name):
if os.path.isfile(pkgfile):
try:
f = open(pkgfile)
except IOError, msg:
except IOError as msg:
sys.stderr.write("Can't open %s: %s\n" %
(pkgfile, msg))
else:
Expand Down
2 changes: 1 addition & 1 deletion mitogen/master.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def find(self, fullname):
return None

path = getattr(mod, '__file__', None)
if not (os.path.exists(path) and _looks_like_script(path)):
if not (path is not None and os.path.exists(path) and _looks_like_script(path)):
return None

fp = open(path, 'rb')
Expand Down
2 changes: 1 addition & 1 deletion mitogen/parent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2331,7 +2331,7 @@ def disconnect(self, context):
directly connected.
"""
stream = self.stream_by_id(context)
if stream.remote_id != context.context_id:
if stream.protocol.remote_id != context.context_id:
return

l = mitogen.core.Latch()
Expand Down

0 comments on commit c6de090

Please sign in to comment.