Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Both arguments of PipeTransport constructor must be file objects #23

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Simpler check for File objects.
  • Loading branch information
Jayme Tosi Neto committed Jun 5, 2020
commit ca857e483aaf4327b84f76ad2789c749cc3440c7
2 changes: 1 addition & 1 deletion ppft/transport.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def __init__(self, r, w):
#open('/tmp/pp.debug', 'a+').write(repr((r,w))+'\n')
self.scache = {}
self.exiting = False
if isinstance(r, ppc.file) and isinstance(w, ppc.file):
if hasattr(r, 'read') and isinstance(w, 'write'):
self.r = r
self.w = w
else:
Expand Down