[New-bugs-announce] [issue7909] os.path.abspath(os.devnull) returns \\\\nul should be nul?

Arno Bakker report at bugs.python.org
Thu Feb 11 16:09:44 CET 2010

New submission from Arno Bakker <abakker at users.sourceforge.net>:

I encountered this when somebody used:

                    format='%(asctime)s %(levelname)-8s %(message)s',
                    datefmt='%a, %d %b %Y %H:%M:%S',

the logging code apparently calls os.path.abspath(filename) somewhere,
causing an exception:
 File "c:\python264\lib\logging\__init__.py", line 838, in _open
   stream = open(self.baseFilename, self.mode)
   IOError: [Errno 2] No such file or directory: '\\\\nul'

components: Windows
messages: 99212
nosy: abakker
severity: normal
status: open
title: os.path.abspath(os.devnull) returns \\\\nul should be nul?
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list