Skip to content

Commit

Permalink
Add slots to AliasManager.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Mar 16, 2019
1 parent 091b781 commit 4625468
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions peewee.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,8 @@ def savepoint(self):


class AliasManager(object):
__slots__ = ('_counter', '_current_index', '_mapping')

def __init__(self):
# A list of dictionaries containing mappings at various depths.
self._counter = 0
Expand Down

0 comments on commit 4625468

Please sign in to comment.