GEPS 032: Python 3 support/Python 3 Deprecated

From Gramps
Revision as of 13:22, 6 May 2009 by Romjerome (talk | contribs) (New page: python -3 gramps.py on trunk (2009-05-06) {|{style="border: 1px #aaa solid; border-collapse:collapse; margin: 1em 1em 1em 1em;" border="1" align="left" ! module ! warnings (deprecation, r...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

python -3 gramps.py on trunk (2009-05-06)

module warnings (deprecation, runtime) . .
AutoComp.py:159: : the cmp argument is not supported in 3.x keys.sort(self.by_value)
BasicUtils/_NameDisplay.py:225: : the cmp argument is not supported in 3.x keys.sort(self._sort_name_format)
BasicUtils/_NameDisplay.py:349: : the cmp argument is not supported in 3.x d_keys.sort(_make_cmp) # reverse sort by ikeyword
BasicUtils/_NameDisplay.py:366: : the cmp argument is not supported in 3.x d_keys.sort(_make_cmp) # reverse sort by keyword
DataViews/GrampletView.py:782: classic int division r += t/2
DataViews/GrampletView.py:1184: : the cmp argument is not supported in 3.x gramplets.sort(lambda a, b: cmp(a.row, b.row))
DataViews/GrampletView.py:1330: : classic int division if x < (sx/len(self.columns) * (i + 1)):
DataViews/PedigreeView.py:1002: : classic int division ymid = int(math.floor(ymax/4*3))
DataViews/PedigreeView.py:1068: : classic int division gap = alloc.height / (h*2)
DataViews/PedigreeView.py:1077: : classic int division area.window.draw_line(gc, 0, alloc.height/2, alloc.width/2,alloc.height/2)
DataViews/PedigreeView.py:1083: : classic int division area.window.draw_line(gc, alloc.width/2, alloc.height/2, alloc.width/2,gap)
DataViews/PedigreeView.py:1084: : classic int division area.window.draw_line(gc, alloc.width/2, gap, alloc.width,gap)
DataViews/PedigreeView.py:1090: : classic int division area.window.draw_line(gc, alloc.width/2, alloc.height/2, alloc.width/2,alloc.height-gap)
DataViews/PedigreeView.py:1091: : classic int division area.window.draw_line(gc, alloc.width/2, alloc.height-gap, alloc.width,alloc.height-gap)
DataViews/PedigreeView.py:841: : classic int division if i > 0 and lst[((i+1)/2)-1]:
DataViews/PedigreeView.py:843: : classic int division fam = lst[((i+1)/2)-1][2]
DataViews/PedigreeView.py:847: : classic int division pw.connect("button-press-event",
DataViews/PedigreeView.py:860: : classic int division if self.show_images and i < ((len(positions)-1)/2) and positions[i][0][3] > 1:
DataViews/PedigreeView.py:984: : classic int division ymid = int(math.floor(ymax/2))
DataViews/PedigreeView.py:993: : classic int division ymid = int(math.floor(ymax/4))
DateHandler/_DateParser.py:276: : the cmp argument is not supported in 3.x keys.sort(lambda x, y: cmp(len(y), len(x)))
DisplayModels/_PeopleModel.py:196: : the cmp argument is not supported in 3.x slist.sort(lambda x, y: locale.strcoll(x[0], y[0]))
DisplayModels/_PeopleModel.py:96: : the cmp argument is not supported in 3.x mylist.sort(locale.strcoll)
DisplayState.py:223: : the cmp argument is not supported in 3.x rfiles.sort(by_time)
Editors/_EditPrimary.py:139: : comparing unequal types not supported in 3.x self.empty_object().serialize()[1:]) == 0
gen/db/dbdir.py:2034: : comparing unequal types not supported in 3.x old_version = map(int, db.__version__.split(".",2)[:2]) < (4, 7)
gen/lib/calendar.py:435: : classic int division - _GRG_SDN_OFFSET )
gen/lib/calendar.py:442: : classic int division century = temp / _GRG_DAYS_PER_400_YEARS
gen/lib/calendar.py:445: : classic int division temp = ((temp % _GRG_DAYS_PER_400_YEARS) / 4) * 4 + 3
gen/lib/calendar.py:446: : classic int division year = (century * 100) + (temp / _GRG_DAYS_PER_4_YEARS)
gen/lib/calendar.py:447: : classic int division day_of_year = (temp % _GRG_DAYS_PER_4_YEARS) / 4 + 1
gen/lib/calendar.py:451: : classic int division month = temp / _GRG_DAYS_PER_5_MONTHS
gen/lib/calendar.py:452: : classic int division day = (temp % _GRG_DAYS_PER_5_MONTHS) / 5 + 1
gen/lib/grampstype.py:70: : Overriding __cmp__ blocks inheritance of __hash__ in 3.x class GrampsType(object):
GrampsLogger/_ErrorReportAssistant.py:5: : in 3.x, bsddb has been removed please use the pybsddb project, instead import sys, os,bsddb
plugins/gramplet/TopSurnamesGramplet.py:83: : the cmp argument is not supported in 3.x surname_sort.sort(lambda a,b: -cmp(a,b))
QuickReports.py:94: : the cmp argument is not supported in 3.x showlst.sort(by_menu_name)
ViewManager.py:1400: : the cmp argument is not supported in 3.x lst.sort(by_menu_name)
widgets/monitoredwidgets.py:539: : the cmp argument is not supported in 3.x keys.sort(self.__by_value)