##// END OF EJS Templates
Update path.py to version 2.2.
walter.doerwald -
Show More
@@ -12,17 +12,13 b' This module requires Python 2.2 or later.'
12 12
13 13 URL: http://www.jorendorff.com/articles/python/path
14 14 Author: Jason Orendorff <jason.orendorff\x40gmail\x2ecom> (and others - see the url!)
15 Date: 7 Mar 2004
15 Date: 9 Mar 2007
16 16 """
17 17
18 18
19 19 # TODO
20 # - Tree-walking functions don't avoid symlink loops. Matt Harrison sent me a patch for this.
21 # - Tree-walking functions can't ignore errors. Matt Harrison asked for this.
22 #
23 # - Two people asked for path.chdir(). This just seems wrong to me,
24 # I dunno. chdir() is moderately evil anyway.
25 #
20 # - Tree-walking functions don't avoid symlink loops. Matt Harrison
21 # sent me a patch for this.
26 22 # - Bug in write_text(). It doesn't support Universal newline mode.
27 23 # - Better error message in listdir() when self isn't a
28 24 # directory. (On Windows, the error message really sucks.)
@@ -30,13 +26,12 b' Date: 7 Mar 2004'
30 26 # - Add methods for regex find and replace.
31 27 # - guess_content_type() method?
32 28 # - Perhaps support arguments to touch().
33 # - Could add split() and join() methods that generate warnings.
34 29
35 30 from __future__ import generators
36 31
37 32 import sys, warnings, os, fnmatch, glob, shutil, codecs, md5
38 33
39 __version__ = '2.1'
34 __version__ = '2.2'
40 35 __all__ = ['path']
41 36
42 37 # Platform-specific support for path.owner
@@ -389,6 +384,7 b' class path(_base):'
389 384 "Unable to list directory '%s': %s"
390 385 % (self, sys.exc_info()[1]),
391 386 TreeWalkWarning)
387 return
392 388 else:
393 389 raise
394 390
@@ -439,6 +435,7 b' class path(_base):'
439 435 "Unable to list directory '%s': %s"
440 436 % (self, sys.exc_info()[1]),
441 437 TreeWalkWarning)
438 return
442 439 else:
443 440 raise
444 441
@@ -469,6 +466,7 b' class path(_base):'
469 466 "Unable to list directory '%s': %s"
470 467 % (self, sys.exc_info()[1]),
471 468 TreeWalkWarning)
469 return
472 470 else:
473 471 raise
474 472
@@ -478,12 +476,13 b' class path(_base):'
478 476 isdir = not isfile and child.isdir()
479 477 except:
480 478 if errors == 'ignore':
481 return
479 continue
482 480 elif errors == 'warn':
483 481 warnings.warn(
484 482 "Unable to access '%s': %s"
485 483 % (self, sys.exc_info()[1]),
486 484 TreeWalkWarning)
485 continue
487 486 else:
488 487 raise
489 488
@@ -1,3 +1,7 b''
1 2007-03-23 Walter Doerwald <walter@livinglogic.de>
2
3 * IPython/Extensions/path.py: Updated to version 2.2.
4
1 5 2007-03-23 Ville Vainio <vivainio@gmail.com>
2 6
3 7 * iplib.py: recursive alias expansion now works better, so that
General Comments 0
You need to be logged in to leave comments. Login now