Issue #10 resolved

version info plugin fails to open setup.cfg on Python 2 when configparser backport is present

Jason R. Coombs
repo owner created an issue

In [[|this python-irclib feature request]], it was discovered that if the Python 2 backport of the Python 3 configparser module is present, it causes calculate_version to fail and return None.

Comments (3)

  1. Klaus Alexander Seistrup

    I've submitted this patch to the configparser3 bts:

    --- a/
    +++ b/
    @@ -701,7 +701,7 @@ class RawConfigParser(MutableMapping):
             Return list of successfully read files.
    -        if isinstance(filenames, unicode):
    +        if isinstance(filenames, unicode) or isinstance(filenames, str):
                 filenames = [filenames]
             read_ok = []
             for filename in filenames:


  2. Log in to comment