New submission from Arno Bakker <abak...@users.sourceforge.net>: 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' ---------- 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 <rep...@bugs.python.org> <http://bugs.python.org/issue7909> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com