Show More
@@ -70,9 +70,10 b' def format_for_leo(obj):' | |||||
70 | """ Convert obj to string representiation (for editing in Leo)""" |
|
70 | """ Convert obj to string representiation (for editing in Leo)""" | |
71 | return pprint.pformat(obj) |
|
71 | return pprint.pformat(obj) | |
72 |
|
72 | |||
73 | @format_for_leo.when_type(list) |
|
73 | # Just an example - note that this is a bad to actually do! | |
74 | def format_list(obj): |
|
74 | #@format_for_leo.when_type(list) | |
75 | return "\n".join(str(s) for s in obj) |
|
75 | #def format_list(obj): | |
|
76 | # return "\n".join(str(s) for s in obj) | |||
76 |
|
77 | |||
77 |
|
78 | |||
78 | attribute_re = re.compile('^[a-zA-Z_][a-zA-Z0-9_]*$') |
|
79 | attribute_re = re.compile('^[a-zA-Z_][a-zA-Z0-9_]*$') |
General Comments 0
You need to be logged in to leave comments.
Login now