Skip to content

Commit

Permalink
marshal9p: use BytesIO for the buffer space
Browse files Browse the repository at this point in the history
  • Loading branch information
svinota committed Jan 4, 2013
1 parent 5d824ec commit 118c696
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 216 deletions.
4 changes: 2 additions & 2 deletions py9p/fuse9p.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,9 @@ def _readdir(self, tfid, path, offset):
break
offset += len(ret.data)
p9 = marshal9p.Marshal9P(dotu=self.dotu)
p9.setBuf(ret.data)
p9.setBuffer(ret.data)
fcall = py9p.Fcall(py9p.Rstat)
p9.decstat(fcall, 0)
p9.decstat(fcall.stat, 0)
dirs.extend(fcall.stat)
self.client._clunk(tfid)
return dirs
Expand Down
Loading

0 comments on commit 118c696

Please sign in to comment.