Richard Oudkerk <[email protected]> added the comment:
Without the check for RuntimeError
os.utime("foo", times=(5,5), ns=(5,5))
raises
TypeError("TypeError: 'str' does not support the buffer interface")
because we have fallen through to the narrow path. The correct error is
RuntimeError("utime: you may specify either 'times' or 'ns' but not both")
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue14127>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com