This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author abakker
Recipients abakker
Date 2010-02-11.15:09:43
SpamBayes Score 0.00016684325
Marked as misclassified No
Message-id <1265900984.97.0.533817039299.issue7909@psf.upfronthosting.co.za>
In-reply-to
Content
I encountered this when somebody used:

logging.basicConfig(level=logging.CRITICAL,
                    format='%(asctime)s %(levelname)-8s %(message)s',
                    datefmt='%a, %d %b %Y %H:%M:%S',
                    filename=os.devnull,
                    filemode='w')

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'
History
Date User Action Args
2010-02-11 15:09:45abakkersetrecipients: + abakker
2010-02-11 15:09:44abakkersetmessageid: <1265900984.97.0.533817039299.issue7909@psf.upfronthosting.co.za>
2010-02-11 15:09:43abakkerlinkissue7909 messages
2010-02-11 15:09:43abakkercreate