* src/plugins/EventCmp.py: clean up imports and fix pylint error
0001496: in EventCmp.py: E:198:fix: Using variable 'l' before assignment 2008-01-07 Raphael Ackermann <raphael.ackermann@gmail.com svn: r9743
This commit is contained in:
parent
dd3b3311a3
commit
cee58d48ab
@ -1,3 +1,7 @@
|
|||||||
|
2008-01-07 Raphael Ackermann <raphael.ackermann@gmail.com
|
||||||
|
* src/plugins/EventCmp.py: clean up imports and fix pylint error
|
||||||
|
0001496: in EventCmp.py: E:198:fix: Using variable 'l' before assignment
|
||||||
|
|
||||||
2008-01-07 Raphael Ackermann <raphael.ackermann@gmail.com
|
2008-01-07 Raphael Ackermann <raphael.ackermann@gmail.com
|
||||||
* src/plugins/CmdRef.py: clean up unused and broken imports and vars
|
* src/plugins/CmdRef.py: clean up unused and broken imports and vars
|
||||||
0001494: unresolved import WebPage in CmdRef.py
|
0001494: unresolved import WebPage in CmdRef.py
|
||||||
|
@ -36,7 +36,6 @@ from gettext import gettext as _
|
|||||||
# GNOME/GTK modules
|
# GNOME/GTK modules
|
||||||
#
|
#
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
import gtk
|
|
||||||
import gtk.glade
|
import gtk.glade
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
@ -47,7 +46,7 @@ import gtk.glade
|
|||||||
from Filters import GenericFilter, build_filter_menu, Rules
|
from Filters import GenericFilter, build_filter_menu, Rules
|
||||||
import Sort
|
import Sort
|
||||||
import Utils
|
import Utils
|
||||||
import ODSTab
|
from docgen import ODSTab
|
||||||
import const
|
import const
|
||||||
import Errors
|
import Errors
|
||||||
import DateHandler
|
import DateHandler
|
||||||
@ -195,7 +194,7 @@ def by_value(first,second):
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
def fix(line):
|
def fix(line):
|
||||||
l = line.strip().replace('&','&').replace(l,'>','>')
|
l = line.strip().replace('&','&').replace('>','>')
|
||||||
return l.replace(l,'<','<').replace(l,'"','"')
|
return l.replace(l,'<','<').replace(l,'"','"')
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
@ -320,7 +319,8 @@ class DisplayChart(ManagedWindow.ManagedWindow):
|
|||||||
event.get_date_object().get_sort_value()
|
event.get_date_object().get_sort_value()
|
||||||
place_handle = event.get_place_handle()
|
place_handle = event.get_place_handle()
|
||||||
if place_handle:
|
if place_handle:
|
||||||
place = self.db.get_place_from_handle(place_handle).get_title()
|
place = self.db. \
|
||||||
|
get_place_from_handle(place_handle).get_title()
|
||||||
tlist.append(date)
|
tlist.append(date)
|
||||||
tlist.append(sortdate)
|
tlist.append(sortdate)
|
||||||
tlist.append(place)
|
tlist.append(place)
|
||||||
|
Loading…
Reference in New Issue
Block a user