=== modified file 'mandos' --- mandos 2016-10-08 04:33:04 +0000 +++ mandos 2016-10-29 13:44:49 +0000 @@ -515,12 +515,11 @@ _need_version = b"3.3.0" def __init__(self): - # Need to use class name "GnuTLS" here, since this method is - # called before the assignment to the "gnutls" global variable - # happens. - if GnuTLS.check_version(self._need_version) is None: - raise GnuTLS.Error("Needs GnuTLS {} or later" - .format(self._need_version)) + # Need to use "self" here, since this method is called before + # the assignment to the "gnutls" global variable happens. + if self.check_version(self._need_version) is None: + raise self.Error("Needs GnuTLS {} or later" + .format(self._need_version)) # Unless otherwise indicated, the constants and types below are # all from the gnutls/gnutls.h C header file.