Skip to content

Commit

Permalink
Merge branch 'r0.7'
Browse files Browse the repository at this point in the history
  • Loading branch information
jmafc committed Jan 27, 2014
2 parents 9194399 + 4de29a3 commit f27a1ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyrseas/database.py
Expand Up @@ -148,11 +148,11 @@ def _trim_objects(self, schemas):
'tsdicts', 'tsparsers', 'tsconfigs', 'extensions',
'collations', 'eventtrigs']:
objdict = getattr(self.db, objtype)
for obj in objdict:
for obj in list(objdict.keys()):
# obj[0] is the schema name in all these dicts
if obj[0] not in schemas:
del objdict[obj]
for sch in self.db.schemas:
for sch in list(self.db.schemas.keys()):
if sch not in schemas:
del self.db.schemas[sch]
# exclude database-wide objects
Expand Down

0 comments on commit f27a1ed

Please sign in to comment.