ValueError: Invalid mode ('rw')
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rubber |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Python 2.7.11 x64, Windows 7 x64.
Tested Rubber versions:
- 1.4
- preview revision 20a56ec761ecaf7
Commandline:
python2 -c "import sys,os;
Rubber fails with this error message (first several lines have been skipped as they don't play a role):
File "C:\tools\
if not self.compile():
File "C:\tools\
self.
File "C:\tools\
stdin = devnull(),
File "C:\tools\
devnull_fp = open(os.devnull, 'rw')
ValueError: Invalid mode ('rw')
After replacing 'rw' with 'r+' all works fine.
Changed in rubber: | |
status: | Fix Committed → Fix Released |
Thanks, committed! Weirdly enough, Python2 on Linux accepts this mode. Python3 on Linux does not.