summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Kreen2011-06-28 14:00:58 +0000
committerMarko Kreen2011-06-29 07:11:05 +0000
commite44881488d19e2c928fbdef4949f40530a268797 (patch)
tree095af4ef595d2d6809cdbdeb2d7df2872b3e034a
parentc63c5f332fd6c033ff89b49c919e3f232479822b (diff)
Fix various pylint errors
-rw-r--r--python/londiste/handlers/dispatch.py3
-rw-r--r--python/londiste/handlers/part.py2
-rw-r--r--python/londiste/handlers/qtable.py2
3 files changed, 5 insertions, 2 deletions
diff --git a/python/londiste/handlers/dispatch.py b/python/londiste/handlers/dispatch.py
index b2663448..5916eee7 100644
--- a/python/londiste/handlers/dispatch.py
+++ b/python/londiste/handlers/dispatch.py
@@ -862,7 +862,6 @@ class Dispatcher(BaseHandler):
copyed
"""
_src_cols = _dst_cols = column_list
- _write_hook = None
condition = ' and '.join(cond_list)
if self.conf.skip_fields:
@@ -877,6 +876,8 @@ class Dispatcher(BaseHandler):
if self.encoding_validator:
def _write_hook(obj, data):
return self.encoding_validator.validate_copy(data, _src_cols)
+ else:
+ _write_hook = None
return skytools.full_copy(tablename, src_curs, dst_curs, _src_cols,
condition, self.table_name, _dst_cols,
diff --git a/python/londiste/handlers/part.py b/python/londiste/handlers/part.py
index 784162f5..fa5ccb77 100644
--- a/python/londiste/handlers/part.py
+++ b/python/londiste/handlers/part.py
@@ -66,7 +66,7 @@ class PartHandler(TableHandler):
curs.execute(q)
self.local_part, self.max_part = curs.fetchone()
if self.local_part is None or self.max_part is None:
- raise Exeption('Error loading part info')
+ raise Exception('Error loading part info')
# register handler class
__londiste_handlers__ = [PartHandler]
diff --git a/python/londiste/handlers/qtable.py b/python/londiste/handlers/qtable.py
index 97b0b976..443d2496 100644
--- a/python/londiste/handlers/qtable.py
+++ b/python/londiste/handlers/qtable.py
@@ -14,6 +14,8 @@ qsplitter - dummy handler to setup queue tables. All events are ignored. Table
from londiste.handler import BaseHandler
+import pgq
+
__all__ = ['QueueTableHandler', 'FakeLocalHandler', 'QueueSplitterHandler']