Revision 31d3b918 lib/serializer.py
b/lib/serializer.py | ||
---|---|---|
244 | 244 |
return self._item |
245 | 245 |
|
246 | 246 |
def __str__(self): |
247 |
return "<{._descr}>".format(self)
|
|
247 |
return "<%s>" % self._descr
|
|
248 | 248 |
|
249 | 249 |
def __repr__(self): |
250 |
return "Private(?, descr='{._descr}')".format(self)
|
|
250 |
return "Private(?, descr=%r)".format(self._descr)
|
|
251 | 251 |
|
252 | 252 |
# pylint: disable=W0212 |
253 | 253 |
# If it doesn't access _item directly, the call will go through __getattr__ |
Also available in: Unified diff