aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Christoph Goehre <chris@sigxcpu.org>2011-02-19 18:14:31 +0100
committerLibravatar Christoph Goehre <chris@sigxcpu.org>2011-02-19 18:14:31 +0100
commitd4fa57e81588eaa4acf9291f6de83e842a3ecec4 (patch)
tree1463890731e9b68830f0f34b3a3e66c4c29a687c
parent5e963b6ce43a006192089c1587f9e5acf3a05aad (diff)
downloadmini-dinstall-d4fa57e81588eaa4acf9291f6de83e842a3ecec4.tar.bz2
mini-dinstall-d4fa57e81588eaa4acf9291f6de83e842a3ecec4.tar.xz
mini-dinstall-d4fa57e81588eaa4acf9291f6de83e842a3ecec4.tar.zst
logging.StreamHandler use sys.stderr as default output
And python 2.7 change option name from strm to stream. Traceback (most recent call last): File "./mini-dinstall", line 196, in <module> stderr_handler = logging.StreamHandler(strm=sys.stderr) TypeError: __init__() got an unexpected keyword argument 'strm' Closes: #613992
-rwxr-xr-xmini-dinstall2
1 files changed, 1 insertions, 1 deletions
diff --git a/mini-dinstall b/mini-dinstall
index 5df6b1b..8590496 100755
--- a/mini-dinstall
+++ b/mini-dinstall
@@ -193,7 +193,7 @@ def do_chmod(name, mode):
do_and_log('Changing mode of "%s" to %o' % (name, mode), os.chmod, name, mode)
logger.setLevel(logging.DEBUG)
-stderr_handler = logging.StreamHandler(strm=sys.stderr)
+stderr_handler = logging.StreamHandler()
stderr_handler.setLevel(loglevel)
logger.addHandler(stderr_handler)
stderr_handler.setLevel(loglevel)