~excitablesnowball/duplicity/s3-onezone-ia

« back to all changes in this revision

Viewing changes to duplicity/backends/webdavbackend.py

  • Committer: kenneth at loafman
  • Date: 2017-12-20 13:03:42 UTC
  • Revision ID: kenneth@loafman.com-20171220130342-rzlfz5qrf6rp6xui
* Fixes so pylint 1.8.1 does not complain about missing conditional imports.
  - Fix dpbxbackend so that imports require instantiation of the class.
  - Added pylint: disable=import-error to a couple of conditional imports

Show diffs side-by-side

added added

removed removed

Lines of Context:
272
272
        return urllib2.parse_keqv_list(urllib2.parse_http_list(challenge_string))
273
273
 
274
274
    def get_kerberos_authorization(self):
275
 
        import kerberos
 
275
        import kerberos  # pylint: disable=import-error
276
276
        _, ctx = kerberos.authGSSClientInit("HTTP@%s" % self.conn.host)
277
277
        kerberos.authGSSClientStep(ctx, "")
278
278
        tgt = kerberos.authGSSClientResponse(ctx)