Skip to content

Commit e3dcef1

Browse files
committed
Final whitespace cleanups.
should now match original rolled back whitespace changes. Except this doesn't break code.
1 parent 056f2cb commit e3dcef1

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

roundup/backends/back_anydbm.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ def __init__(self, config, journaltag=None):
112112
self.cache = {} # cache of nodes loaded or created
113113
self.stats = {'cache_hits': 0, 'cache_misses': 0, 'get_items': 0,
114114
'filtering': 0}
115-
self.dirtynodes = {} # keep track of the dirty nodes by class
116-
self.newnodes = {} # keep track of the new nodes by class
117-
self.destroyednodes = {}# keep track of the destroyed nodes by class
115+
self.dirtynodes = {} # keep track of the dirty nodes by class
116+
self.newnodes = {} # keep track of the new nodes by class
117+
self.destroyednodes = {} # keep track of the destroyed nodes by class
118118
self.transactions = []
119119
self.indexer = get_indexer(config, self)
120120
self.security = security.Security(self)
@@ -131,7 +131,7 @@ def __init__(self, config, journaltag=None):
131131
self.lockfile.flush()
132132

133133
self.Session = None
134-
self.Otk = None
134+
self.Otk = None
135135

136136
def post_init(self):
137137
"""Called once the schema initialisation has finished.
@@ -1572,7 +1572,7 @@ def find(self, **propspec):
15721572
for propname, itemids in propspec.items():
15731573
if type(itemids) is not type({}):
15741574
if itemids is None or isinstance(itemids, type("")):
1575-
itemids = {itemids:1}
1575+
itemids = {itemids: 1}
15761576
else:
15771577
itemids = dict.fromkeys(itemids)
15781578

@@ -1702,7 +1702,7 @@ def getnodeids(self, db=None, retired=None):
17021702
return res
17031703

17041704
def _filter(self, search_matches, filterspec, proptree,
1705-
num_re = re.compile(r'^\d+$'), retired=False,
1705+
num_re=re.compile(r'^\d+$'), retired=False,
17061706
exact_match_spec={}):
17071707
"""Return a list of the ids of the nodes in this class that
17081708
match the 'filter' spec, sorted by the group spec and then the
@@ -1814,17 +1814,17 @@ def _filter(self, search_matches, filterspec, proptree,
18141814

18151815
elif isinstance(propclass, hyperdb.Number):
18161816
if type(v) != type([]):
1817-
try :
1817+
try:
18181818
v = v.split(',')
1819-
except AttributeError :
1819+
except AttributeError:
18201820
v = [v]
18211821
l.append((OTHER, k, [float(val) for val in v]))
18221822

18231823
elif isinstance(propclass, hyperdb.Integer):
18241824
if type(v) != type([]):
1825-
try :
1825+
try:
18261826
v = v.split(',')
1827-
except AttributeError :
1827+
except AttributeError:
18281828
v = [v]
18291829
l.append((OTHER, k, [int(val) for val in v]))
18301830

@@ -1924,7 +1924,7 @@ def _filter(self, search_matches, filterspec, proptree,
19241924
matches = k
19251925

19261926
# add sorting information to the proptree
1927-
JPROPS = {'actor':1, 'activity':1, 'creator':1, 'creation':1}
1927+
JPROPS = {'actor': 1, 'activity': 1, 'creator': 1, 'creation': 1}
19281928
children = []
19291929
if proptree:
19301930
children = proptree.sortable_children()
@@ -1934,8 +1934,8 @@ def _filter(self, search_matches, filterspec, proptree,
19341934
assert (dir and prop)
19351935
propclass = props[prop]
19361936
pt.sort_ids = []
1937-
is_pointer = isinstance(propclass,(hyperdb.Link,
1938-
hyperdb.Multilink))
1937+
is_pointer = isinstance(propclass, (hyperdb.Link,
1938+
hyperdb.Multilink))
19391939
if not is_pointer:
19401940
pt.sort_result = []
19411941
try:
@@ -1980,7 +1980,7 @@ def _filter(self, search_matches, filterspec, proptree,
19801980
link = self.db.classes[lcn]
19811981
key = link.orderprop()
19821982
child = pt.propdict[key]
1983-
if key!='id':
1983+
if key != 'id':
19841984
if v not in lcache:
19851985
# open the link class db if it's not already
19861986
if lcldb is None:

0 commit comments

Comments
 (0)