~duplicity-team/duplicity/0.8-series

« back to all changes in this revision

Viewing changes to duplicity/backends/pcabackend.py

* Merged in lp:~kenneth-loafman/duplicity/duplicity-pylint
  - Enable additional pylint warnings. Make 1st pass at correction.
      unused-argument,
      unused-wildcard-import,
      redefined-builtin,
      bad-indentation,
      mixed-indentation,
     unreachable
  - Renamed globals to config to fix conflict with __builtin__.glogals()
  - Resolved conflict between duplicity.config and testing.manual.config
  - Normalized emacs mode line to have encoding:utf8 on all *.py files

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4 -*-
 
1
# -*- Mode:Python; indent-tabs-mode:nil; tab-width:4; encoding:utf8 -*-
2
2
#
3
3
# Copyright 2013 Matthieu Huin <mhu@enovance.com>
4
4
# Copyright 2017 Xavier Lucas <xavier.lucas@corp.ovh.com>
144
144
            log.FatalError(u"Container '%s' exists but its storage policy is '%s' not '%s'."
145
145
                           % (self.container, container_metadata[policy_header.lower()], policy))
146
146
 
147
 
    def _error_code(self, operation, e):  # pylint: disable: unused-argument
 
147
    def _error_code(self, operation, e):  # pylint: disable= unused-argument
148
148
        if isinstance(e, self.resp_exc):
149
149
            if e.http_status == 404:
150
150
                return log.ErrorCode.backend_not_found