remove pep8 validation errors

This commit is contained in:
2015-07-24 17:54:10 +02:00
parent 6cc74506fb
commit 44cd618704
37 changed files with 146 additions and 346 deletions

View File

@ -15,6 +15,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# ____________________________________________________________
from copy import copy
from ..util import Cache
@ -58,10 +59,10 @@ class Settings(Cache):
"""return all modified settings in a dictionary
example: {'path1': set(['prop1', 'prop2'])}
"""
return self._properties
return copy(self._properties)
def get_modified_permissives(self):
"""return all modified permissives in a dictionary
example: {'path1': set(['perm1', 'perm2'])}
"""
return self._permissives
return copy(self._permissives)

View File

@ -15,7 +15,7 @@
# You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
# ____________________________________________________________
from copy import copy
from ..util import Cache
@ -58,7 +58,7 @@ class Values(Cache):
"""return all values in a dictionary
example: {'path1': (owner, 'value1'), 'path2': (owner, 'value2')}
"""
return self._values
return copy(self._values)
# owner
def setowner(self, path, owner):