Skip to content

Commit 1cf7a1d

Browse files
committed
Remove unneeded kwparam. This parameter name was changed in Python
2.7, but is the only (optional) argument to StreamHandler, so pass it as a positional argument.
1 parent 4b658d0 commit 1cf7a1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyres/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def setup_logging(log_level=logging.INFO, filename=None, stream=sys.stderr):
2121
handler = RotatingFileHandler(filename,maxBytes=52428800,
2222
backupCount=7)
2323
else:
24-
handler = logging.StreamHandler(strm=stream)
24+
handler = logging.StreamHandler(stream)
2525
handler.setFormatter(logging.Formatter(
2626
'%(asctime)s %(levelname)-8s %(message)s', '%Y-%m-%d %H:%M:%S'))
2727
logger.addHandler(handler)

0 commit comments

Comments
 (0)