Skip to content
Snippets Groups Projects
Commit 5aa5b435 authored by Lloyd Carothers's avatar Lloyd Carothers
Browse files

NRLResponse pretty repr.

parent d494256b
Branches nrl2inv
No related tags found
No related merge requests found
......@@ -240,9 +240,15 @@ class NRLPath(str):
class NRLResponse(tuple):
"""
The end or leaf node of NRL tree.
A tuple of ( 'Str description', path_of_resp_file')
"""
def __str__(self):
return '{} : {}'.format(self[0], self[1])
def _repr_pretty_(self, p, cycle):
p.text(str(self))
class LocalNRL(NRL):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment