return "gkeep"
def periodic_render(self, key):
- strikethrough = re.compile(u'\u2611([^\n]*)\n', re.UNICODE)
+ strikethrough = re.compile('\u2611([^\n]*)\n', re.UNICODE)
linkify = re.compile(r'.*(https?:\/\/\S+).*')
self.keep.sync()
self.debug_print("Note title '%s'" % title)
if contents != '' and not contents.isspace():
contents = strikethrough.sub(r'<font color="#999999">` <del>\1</del></font>\n', contents)
- contents = contents.replace('`', u'\u2611')
+ contents = contents.replace('`', '\u2611')
#self.debug_print("Note contents:\n%s" % contents)
contents = linkify.sub(r'<a href="\1">\1</a>', contents)
individual_lines = contents.split("\n")
max_length = length
contents = contents.replace("\n", "<BR>\n")
color = note.color.name.lower()
- if color in self.colors_by_name.keys():
+ if color in list(self.colors_by_name.keys()):
color = self.colors_by_name[color]
else:
self.debug_print("Unknown color '%s'" % color)