From 4ec06a0babf271b1664d1850ebcd75a05d4e3599 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Wed, 6 Jun 2012 21:47:40 -0700 Subject: fix a missed update from the old OUT variable usage. --- layman/utils.py | 8 ++++++-- 1 file 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): -- cgit v1.2.3-1-g7c22