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

Add NRLRespone.__str__ so NRL leaves print nice.

parent 3bc30985
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ class NRL(object):
descr = '<no description>'
descr = self._clean_str(descr)
resp_path = self._choose(section, path)
nrl_dict[section] = (descr, resp_path)
nrl_dict[section] = NRLResponse((descr, resp_path))
continue
else:
msg = "Unexpected structure of NRL file '{}'".format(path)
......@@ -239,6 +239,11 @@ class NRLPath(str):
pass
class NRLResponse(tuple):
def __str__(self):
return '{} : {}'.format(self[0], self[1])
class LocalNRL(NRL):
"""
Subclass of NRL for accessing local copy 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