[Sugar-devel] [PATCH 1/3] PEP8 cleanups
Sascha Silbe
sascha-pgp at silbe.org
Fri Oct 15 13:36:10 EDT 2010
Signed-off-by: Sascha Silbe <sascha-pgp at silbe.org>
diff --git a/src/carquinyol/filestore.py b/src/carquinyol/filestore.py
index 9eb975f..5f518ab 100644
--- a/src/carquinyol/filestore.py
+++ b/src/carquinyol/filestore.py
@@ -155,7 +155,8 @@ class FileStore(object):
os.remove(file_path)
def hard_link_entry(self, new_uid, existing_uid):
- existing_file = layoutmanager.get_instance().get_data_path(existing_uid)
+ existing_file = layoutmanager.get_instance().get_data_path(
+ existing_uid)
new_file = layoutmanager.get_instance().get_data_path(new_uid)
logging.debug('removing %r', new_file)
diff --git a/src/carquinyol/indexstore.py b/src/carquinyol/indexstore.py
index 8a3de30..38483cb 100644
--- a/src/carquinyol/indexstore.py
+++ b/src/carquinyol/indexstore.py
@@ -87,7 +87,6 @@ class TermGenerator (xapian.TermGenerator):
logging.debug('Invalid value for creation_time property: %s',
properties['creation_time'])
-
self.set_document(document)
properties = dict(properties)
diff --git a/src/carquinyol/layoutmanager.py b/src/carquinyol/layoutmanager.py
index 335614f..07f5521 100644
--- a/src/carquinyol/layoutmanager.py
+++ b/src/carquinyol/layoutmanager.py
@@ -20,6 +20,7 @@ import logging
MAX_QUERY_LIMIT = 40960
CURRENT_LAYOUT_VERSION = 6
+
class LayoutManager(object):
"""Provide the logic about how entries are stored inside the datastore
directory
--
1.7.1
More information about the Sugar-devel
mailing list