Skip to content

Commit

Permalink
rename variables named 'as' (untested), since keyword in python 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruce Smith committed Jul 10, 2009
1 parent 9265e15 commit 549a7d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions cad/src/files/mmp/files_mmp.py
Original file line number Diff line number Diff line change
Expand Up @@ -924,10 +924,10 @@ def _read_atomset(self, card):
list1 = map(int, re.findall("\d+", card[card.index(")") + 1:]))
list1 = map((lambda n: self.ndix[n]), list1)

as = AtomSet(self.assy, list1) # create atom set and set props
as.name = name
as.color = col
self.addmember(as)
atomset = AtomSet(self.assy, list1) # create atom set and set props
atomset.name = name
atomset.color = col
self.addmember(atomset)

def _read_espimage(self, card):
"""
Expand Down
4 changes: 2 additions & 2 deletions cad/src/tests/atombasetests.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,9 +476,9 @@ def test_diffDicts(self):
w = water()
db = DiffFactoryBase(w.atomset.values())

as = AtomDict()
atomdict = AtomDict()
for x in w.atomset.values():
as.add(x)
atomdict.add(x)
diffobj = db.snapshot()
keys, olds, news = unpack(diffobj.sets)
assert keys == [3, 4, 5]
Expand Down

0 comments on commit 549a7d5

Please sign in to comment.