Skip to content

Commit

Permalink
Merge pull request #814 from Abjad/trevor/dev
Browse files Browse the repository at this point in the history
Updated definition of AbjadObject.__getstate__().
  • Loading branch information
trevorbaca authored Apr 30, 2017
2 parents 8b7f2d3 + a613ac8 commit d25b0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion abjad/tools/abctools/AbjadObject.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def __getstate__(self):
Returns dictionary.
'''
if hasattr(self, '__dict__'):
if hasattr(self, '__dict__') and hasattr(vars(self), 'copy'):
state = vars(self).copy()
else:
state = {}
Expand Down

0 comments on commit d25b0c4

Please sign in to comment.