diff options
author | Sylvain <syt@logilab.fr> | 2007-04-05 16:11:51 +0200 |
---|---|---|
committer | Sylvain <syt@logilab.fr> | 2007-04-05 16:11:51 +0200 |
commit | 0ef577e1d0f05ee1e29e328f232867828caf9190 (patch) | |
tree | e87d4d1d38690b2e143cdeefa12934f464adcc63 | |
parent | a4f3ff6982ab963f265d1259e800ea23366110a7 (diff) | |
download | logilab-common-0ef577e1d0f05ee1e29e328f232867828caf9190.tar.gz |
use shutil.move instead of os.rename as default action of shellutils.mv
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | shellutils.py | 2 | ||||
-rw-r--r-- | test/unittest_db.py | 2 |
3 files changed, 3 insertions, 4 deletions
@@ -3,7 +3,8 @@ ChangeLog for logilab.common -- * pytest improvements - + * use shutil.move instead of os.rename as default action of shellutils.mv + 2007-02-12 -- 0.21.3 * fixed cached decorator to use __dict__ instead of attribute lookup, diff --git a/shellutils.py b/shellutils.py index fefd05c..a54c6e0 100644 --- a/shellutils.py +++ b/shellutils.py @@ -28,7 +28,7 @@ from os.path import exists, isdir, basename, join, walk from logilab.common import STD_BLACKLIST -def mv(source, destination, _action=os.rename): +def mv(source, destination, _action=shutil.move): """a shell like mv, supporting wildcards """ sources = glob.glob(source) diff --git a/test/unittest_db.py b/test/unittest_db.py index d2c6848..793c151 100644 --- a/test/unittest_db.py +++ b/test/unittest_db.py @@ -1,8 +1,6 @@ """ unit tests for module logilab.common.db - """ -__revision__ = "$Id: unittest_db.py,v 1.13 2006-03-13 12:42:56 syt Exp $" import socket |