diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2012-06-06 21:47:40 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2012-06-06 21:47:40 -0700 |
commit | 4ec06a0babf271b1664d1850ebcd75a05d4e3599 (patch) | |
tree | 113ee6871bb1f8ba875334fc4b5b0667c044347e | |
parent | afb17b0a5bef67fa51e92373fd5043ac27f4c8f2 (diff) | |
download | layman-4ec06a0babf271b1664d1850ebcd75a05d4e3599.tar.gz layman-4ec06a0babf271b1664d1850ebcd75a05d4e3599.tar.bz2 layman-4ec06a0babf271b1664d1850ebcd75a05d4e3599.zip |
fix a missed update from the old OUT variable usage.
-rw-r--r-- | layman/utils.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/layman/utils.py b/layman/utils.py index 9ffdda0..7cfdaef 100644 --- a/layman/utils.py +++ b/layman/utils.py @@ -34,7 +34,7 @@ import sys import locale import codecs -from layman.debug import OUT +from layman.output import Message #=============================================================================== @@ -163,7 +163,11 @@ def path(path_elements): return pathname -def delete_empty_directory(mdir, output=OUT): +def delete_empty_directory(mdir, output=None): + # test for a usable output parameter, + # and make it usable if not + if output is None: + output = Message() if os.path.exists(mdir) and not os.listdir(mdir): # Check for sufficient privileges if os.access(mdir, os.W_OK): |