Issue3703
Created on 2008-08-27 14:26 by hagen, last changed 2008-09-01 14:14 by benjamin.peterson.
| File name |
Uploaded |
Description |
Edit |
Remove |
|
dircheck.patch
|
amaury.forgeotdarc,
2008-08-27 15:07
|
|
|
|
| msg72033 (view) |
Author: Hagen Fürstenau (hagen) |
Date: 2008-08-27 14:26 |
|
When trying to open a directory (on Linux), Python 2.x complained with
>>> open("local")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IOError: [Errno 21] Is a directory
Python 3.0 however gives the rather unhelpful or even wrong
>>> open("local")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/MC/hagenf/local/lib/python3.0/io.py", line 284, in __new__
return open(*args, **kwargs)
File "/home/MC/hagenf/local/lib/python3.0/io.py", line 223, in open
closefd)
IOError: [Errno 0] Error: 'local'
|
| msg72034 (view) |
Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) |
Date: 2008-08-27 15:07 |
|
There is a call to dircheck(), but not in the correct place.
The attached patch makes sure that the "Is a directory" message is not
overwritten.
|
| msg72068 (view) |
Author: Gregory P. Smith (gregory.p.smith) |
Date: 2008-08-28 06:48 |
|
looks good to me
|
| msg72248 (view) |
Author: Benjamin Peterson (benjamin.peterson) |
Date: 2008-09-01 14:14 |
|
Fixed in r66097.
|
|
| Date |
User |
Action |
Args |
| 2008-09-01 14:14:01 | benjamin.peterson | set | status: open -> closed nosy:
+ benjamin.peterson resolution: fixed messages:
+ msg72248 |
| 2008-08-28 06:48:37 | gregory.p.smith | set | nosy:
+ gregory.p.smith messages:
+ msg72068 |
| 2008-08-27 15:07:41 | amaury.forgeotdarc | set | priority: critical keywords:
+ patch, needs review messages:
+ msg72034 files:
+ dircheck.patch nosy:
+ amaury.forgeotdarc |
| 2008-08-27 14:26:01 | hagen | create | |
|