Ticket #192: representer.patch
| File representer.patch, 518 bytes (added by anonymous, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | *** /Users/barronh/Downloads/representer.py 2011-07-05 18:11:51.000000000 -0400 |
| 2 | --- /Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/yaml/representer.py 2011-07-05 18:12:37.000000000 -0400 |
| 3 | *************** |
| 4 | *** 145,152 **** |
| 5 | |
| 6 | def ignore_aliases(self, data): |
| 7 | from types import NoneType |
| 8 | - #if data in [None, ()]: |
| 9 | - # return True |
| 10 | if isinstance(data, (tuple, NoneType, str, unicode, bool, int, float)): |
| 11 | return True |
| 12 | |
| 13 | --- 145,150 ---- |
