Skip to content

Commit

Permalink
Correct Python 3 issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KSchopmeyer committed Aug 16, 2017
1 parent 21f608e commit e1c7758
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pywbem/_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ def __repr__(cls):
return 'PywbemLoggers({s.loggers!r})'.format(s=cls)


class PywbemLoggers(object):
# pylint: disable=no-init
class PywbemLoggers(six.with_metaclass(MetaPywbemLoggers)):
"""
Container for pywbem logger information when loggers are created. This
class is a singleton, there is only one set of data for a pywbem
Expand Down Expand Up @@ -283,6 +284,7 @@ def create_logger(cls, log_component, log_dest='stderr',
if not log_filename:
raise ValueError('Filename required if log destination '
'is "file"')
# pylint: disable=redefined-variable-type
handler = logging.FileHandler(log_filename)
format_string = '%(asctime)s-%(name)s-%(message)s'
else:
Expand Down
Empty file modified testsuite/test_logging.py
100644 → 100755
Empty file.

0 comments on commit e1c7758

Please sign in to comment.