Skip to content

Commit

Permalink
Issue $413 patcher diverts subprocess exceptions instead of keeping c…
Browse files Browse the repository at this point in the history
…lass identity

reset new reimport module in sys.modules.

eventlet#413
  • Loading branch information
linbing committed May 14, 2017
1 parent 0ec4df6 commit 024c150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eventlet/green/subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from eventlet.green import selectors
to_patch.append(('selectors', selectors))

patcher.inject('subprocess', globals(), *to_patch)
sys.modules['subprocess'] = patcher.inject('subprocess', globals(), *to_patch)
subprocess_orig = patcher.original("subprocess")
mswindows = sys.platform == "win32"

Expand Down

0 comments on commit 024c150

Please sign in to comment.