]> git.phdru.name Git - bookmarks_db.git/commitdiff
Removed module string.
authorOleg Broytman <phd@phdru.name>
Mon, 15 Sep 2003 20:12:00 +0000 (20:12 +0000)
committerOleg Broytman <phd@phdru.name>
Mon, 15 Sep 2003 20:12:00 +0000 (20:12 +0000)
git-svn-id: file:///home/phd/archive/SVN/bookmarks_db/trunk@17 fdd5c36f-1aea-0310-aeeb-c58d7e2b6c23

Writers/bkmk_whtml.py

index 921dff908645cbbc9b3b07ff137a30104f62df24..54f5c93e3ba689c5acbca555fe4e603a5c6266a8 100644 (file)
@@ -5,11 +5,8 @@
 """
 
 
-import string
-
-
 def dump_comment(comment):
-   return string.replace(comment, "<BR>", "<BR>\n")
+   return comment.replace("<BR>", "<BR>\n")
 
 
 ind_s = " "*4
@@ -24,8 +21,8 @@ class writer_html(Writer):
       self.outfile.write(ind_s*level + "<DL><p>\n")
 
    def root_folder(self, f):
-      header = string.replace(f.header, ".", ".\n")
-      header = string.replace(header, "<T", "\n<T", 3)
+      header = f.header.replace(".", ".\n")
+      header = header.replace("<T", "\n<T", 3)
       self.outfile.write("<!DOCTYPE NETSCAPE-Bookmark-file-1>\n")
       self.outfile.write(header + "\n")
       self.outfile.write('<H1>%s</H1>\n\n' % f.name)