Skip to content
This repository has been archived by the owner on Mar 4, 2021. It is now read-only.

Commit

Permalink
copyonwrite: Fix write mode detection for binary files.
Browse files Browse the repository at this point in the history
Due to this bug, copyonwrite path was not correctly unbound on binary
files.
  • Loading branch information
Jyrki Pulliainen committed Jul 3, 2009
1 parent 371aeca commit c2ed55c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filesystem/copyonwrite.py
Expand Up @@ -14,7 +14,7 @@ def __init__(self, bind=None, **kwargs):
self._bound = getattr(kwargs.get('parent',''), '_bind', None)

def open(self, mode='r', *moreargs, **kwargs):
if mode == 'w':
if 'w' in mode:
self.unbind()
## TODO: we don't have test code for this yet
#elif mode == 'r+':
Expand Down

0 comments on commit c2ed55c

Please sign in to comment.