From 71606370148a0b20ab34d9c15af7f0612cb5ede3 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 18 Oct 2011 13:29:44 +0200 Subject: [PATCH] remove trailing whitespace: :%s/ *$//g Signed-off-by: Nico Schottelius --- lib/cdist/util/fsproperty.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cdist/util/fsproperty.py b/lib/cdist/util/fsproperty.py index 5c95d1b4..55428c4d 100644 --- a/lib/cdist/util/fsproperty.py +++ b/lib/cdist/util/fsproperty.py @@ -77,7 +77,7 @@ class FileList(collections.MutableSequence): def __getitem__(self, index): return self.__read()[index] - + def __setitem__(self, index, value): lines = self.__read() lines[index] = value @@ -134,7 +134,7 @@ class DirectoryDict(collections.MutableMapping): def __setitem__(self, key, value): try: with open(os.path.join(self.path, key), "w") as fd: - fd.write(str(value)) + fd.write(str(value)) except EnvironmentError as e: raise cdist.Error(str(e))