Skip to content

Commit e3aa60d

Browse files
author
Richard Jones
committed
removed references to py2.3+ boolean values [SF#995682]
1 parent d984715 commit e3aa60d

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ are given with the most recent entry first.
55
Fixed:
66
- ZRoundup's search interface works now (sf bug 994957)
77
- fixed history display when "ascending"
8+
- removed references to py2.3+ boolean values (sf bug 995682)
89

910

1011
2004-07-21 0.7.6

roundup/backends/back_anydbm.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1616
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1717
#
18-
#$Id: back_anydbm.py,v 1.146.2.17 2004-07-21 01:02:15 richard Exp $
18+
#$Id: back_anydbm.py,v 1.146.2.18 2004-07-22 04:46:10 richard Exp $
1919
'''This module defines a backend that saves the hyperdatabase in a
2020
database chosen by anydbm. It is guaranteed to always be available in python
2121
versions >2.1.1 (the dumbdbm fallback in 2.1.1 and earlier has several
@@ -1703,7 +1703,7 @@ def filter(self, search_matches, filterspec, sort=(None,None),
17031703
# get the node value
17041704
nv = node.get(k, None)
17051705

1706-
match = False
1706+
match = 0
17071707

17081708
# now apply the property filter
17091709
if t == LINK:
@@ -1724,7 +1724,7 @@ def filter(self, search_matches, filterspec, sort=(None,None),
17241724
# required values
17251725
for want in v:
17261726
if want in nv:
1727-
match = True
1727+
match = 1
17281728
break
17291729
elif t == STRING:
17301730
if nv is None:
@@ -1737,10 +1737,10 @@ def filter(self, search_matches, filterspec, sort=(None,None),
17371737
else:
17381738
if v.to_value:
17391739
if v.from_value <= nv and v.to_value >= nv:
1740-
match = True
1740+
match = 1
17411741
else:
17421742
if v.from_value <= nv:
1743-
match = True
1743+
match = 1
17441744
elif t == OTHER:
17451745
# straight value comparison for the other types
17461746
match = nv in v

roundup/backends/back_mysql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def add_new_columns_v2(self):
252252
olddata = []
253253
propnames = propnames + ['id', '__retired__']
254254
cols = []
255-
first = True
255+
first = 1
256256
for entry in self.cursor.fetchall():
257257
l = []
258258
olddata.append(l)
@@ -292,7 +292,7 @@ def add_new_columns_v2(self):
292292
l.append(v.as_seconds())
293293
else:
294294
l.append(e)
295-
first = False
295+
first = 0
296296

297297
self.drop_class_table_indexes(cn, old_spec[0])
298298

0 commit comments

Comments
 (0)