[Python-checkins] python/dist/src/Lib os.py,1.73,1.74

akuchling at users.sourceforge.net akuchling at users.sourceforge.net
Tue Dec 23 11:33:30 EST 2003


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1:/tmp/cvs-serv6956

Modified Files:
	os.py 
Log Message:
[Bug #829532] Invoking os.makedirs() with an argument that contains a
    directory name with a single dot fails.  The patch skips creating 
    directories named os.curdir. (Patch by Bram Moolenaar)
    
2.3 bugfix candidate.


Index: os.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/os.py,v
retrieving revision 1.73
retrieving revision 1.74
diff -C2 -d -r1.73 -r1.74
*** os.py	2 Dec 2003 12:33:01 -0000	1.73
--- os.py	23 Dec 2003 16:33:28 -0000	1.74
***************
*** 153,156 ****
--- 153,158 ----
      if head and tail and not path.exists(head):
          makedirs(head, mode)
+         if tail == curdir:           # xxx/newdir/. exists if xxx/newdir exists
+             return
      mkdir(name, mode)
  





More information about the Python-checkins mailing list