From eeac507a404e5fde72c18a15a66b1da7ad5e50b1 Mon Sep 17 00:00:00 2001 From: Raphael Ackermann Date: Sat, 8 Aug 2009 15:52:12 +0000 Subject: [PATCH] cleanup (typos, docs, indentation) svn: r12921 --- src/gen/plug/_export.py | 4 ++-- src/glade/catalog/grampswidgets.py | 13 ++++++------- src/plugins/lib/libhtml.py | 2 +- src/plugins/rel/rel_pl.py | 2 +- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/gen/plug/_export.py b/src/gen/plug/_export.py index b0ae76b54..21ac37f28 100644 --- a/src/gen/plug/_export.py +++ b/src/gen/plug/_export.py @@ -62,9 +62,9 @@ class ExportPlugin(Plugin): def get_export_function(self): """ - Get the import function for this plugins. + Get the export function for this plugin. - @return: the callable import_function passed into __init__ + @return: the callable export_function passed into __init__ """ return self.__export_func diff --git a/src/glade/catalog/grampswidgets.py b/src/glade/catalog/grampswidgets.py index ee73dab42..f27a47b17 100644 --- a/src/glade/catalog/grampswidgets.py +++ b/src/glade/catalog/grampswidgets.py @@ -1,14 +1,13 @@ -import gobject import gtk class ValidatableMaskedEntry(gtk.Entry): - __gtype_name__ = 'ValidatableMaskedEntry' + __gtype_name__ = 'ValidatableMaskedEntry' - def __init__(self): - gtk.Entry.__init__(self) + def __init__(self): + gtk.Entry.__init__(self) class StyledTextEditor(gtk.TextView): - __gtype_name__ = 'StyledTextEditor' + __gtype_name__ = 'StyledTextEditor' - def __init__(self): - gtk.Entry.__init__(self) + def __init__(self): + gtk.Entry.__init__(self) diff --git a/src/plugins/lib/libhtml.py b/src/plugins/lib/libhtml.py index bf4702311..e13ee2915 100644 --- a/src/plugins/lib/libhtml.py +++ b/src/plugins/lib/libhtml.py @@ -1,4 +1,4 @@ - # +# # Gramps - a GTK+/GNOME based genealogy program # # Copyright (C) 2009 Gerald Britton diff --git a/src/plugins/rel/rel_pl.py b/src/plugins/rel/rel_pl.py index f3c7573bf..fe7b7d560 100644 --- a/src/plugins/rel/rel_pl.py +++ b/src/plugins/rel/rel_pl.py @@ -518,7 +518,7 @@ class RelationshipCalculator(Relationship.RelationshipCalculator): return tmp # + self.get_sword_distaff(level, reltocommon, ' ') else: - return t_inlaw + \ + return t_inlaw + \ "przodek %s pokolenia" % (_level_name[level - 1]) else: return t_inlaw +"przodek w %d pokoleniu" % level