1. 18 May, 2012 1 commit
  2. 13 May, 2012 1 commit
  3. 12 May, 2012 1 commit
  4. 01 May, 2012 1 commit
  5. 29 Apr, 2012 2 commits
  6. 24 Mar, 2012 1 commit
  7. 21 Mar, 2012 1 commit
  8. 26 Feb, 2012 1 commit
  9. 20 Feb, 2012 1 commit
  10. 10 Dec, 2011 1 commit
  11. 04 Oct, 2011 4 commits
  12. 03 Oct, 2011 1 commit
  13. 19 Sep, 2011 1 commit
  14. 30 Aug, 2011 1 commit
    • Antoine Pitrou's avatar
      Remove misleading comment and code. · 7a18d212
      Antoine Pitrou authored
      Windows does set the errno attribute to ENOENT, but the error message
      displays the Windows error number (3 -> ERROR_PATH_NOT_FOUND), not the
      errno number (2 -> ENOENT).
      The Unix errno corresponding to 3 is ESRCH, explaining the confusion,
      which can be seen in the following snippet:
      
      >>> shutil.rmtree("foo")
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "Z:\default\lib\shutil.py", line 272, in rmtree
          onerror(os.listdir, path, sys.exc_info())
        File "Z:\default\lib\shutil.py", line 270, in rmtree
          names = os.listdir(path)
      WindowsError: [Error 3] The system cannot find the path specified:
      'foo\\*.*'
      >>> e = sys.last_value
      >>> e.errno
      2
      >>> e.winerror
      3
      >>> errno.errorcode[2]
      'ENOENT'
      
      For reference, see PC/errmap.h and
      http://msdn.microsoft.com/en-us/library/ms681382%28v=vs.85%29.aspx
      7a18d212
  15. 29 Aug, 2011 1 commit
  16. 20 Aug, 2011 1 commit
    • Victor Stinner's avatar
      Issue #12326: refactor usage of sys.platform · e6747472
      Victor Stinner authored
       * Use str.startswith(tuple): I didn't know this Python feature, Python rocks!
       * Replace sometimes sys.platform.startswith('linux') with
         sys.platform == 'linux'
       * sys.platform doesn't contain the major version on Cygwin on Mac OS X
         (it's just 'cygwin' and 'darwin')
      e6747472
  17. 29 Jul, 2011 1 commit
  18. 23 Jul, 2011 2 commits
  19. 15 Jul, 2011 2 commits
  20. 14 Jul, 2011 1 commit
  21. 09 Jul, 2011 2 commits
  22. 30 Jun, 2011 1 commit
  23. 29 Jun, 2011 1 commit
  24. 13 Jun, 2011 1 commit
    • Brian Curtin's avatar
      Fix #12084. os.stat on Windows wasn't working properly with relative symlinks. · d25aef55
      Brian Curtin authored
      Use of DeviceIoControl to obtain the symlink path via the reparse tag was
      removed. The code now uses GetFinalPathNameByHandle in the case of a
      symbolic link and works properly given the added test which creates a symbolic
      link and calls os.stat on it from multiple locations.
      
      Victor Stinner also noticed an issue with os.lstat following the os.stat
      code path when being passed bytes. The posix_lstat function was adjusted to
      properly hook up win32_lstat instead of the previous STAT macro (win32_stat).
      d25aef55
  25. 07 Jun, 2011 1 commit
  26. 03 Jun, 2011 1 commit
  27. 01 Jun, 2011 2 commits
  28. 29 May, 2011 1 commit
  29. 23 May, 2011 1 commit
  30. 19 May, 2011 1 commit
  31. 14 May, 2011 2 commits