Properly ignore distutils-bug in qtutils.

This commit is contained in:
Florian Bruhin 2014-12-05 12:56:32 +01:00
parent f355ee6282
commit 98a384c167

View File

@ -55,6 +55,8 @@ def version_check(version, op=operator.ge):
version: The version to check against. version: The version to check against.
op: The operator to use for the check. op: The operator to use for the check.
""" """
# pylint: disable=no-member
# https://bitbucket.org/logilab/pylint/issue/73/
return op(distutils.version.StrictVersion(qVersion()), return op(distutils.version.StrictVersion(qVersion()),
distutils.version.StrictVersion(version)) distutils.version.StrictVersion(version))