Advertisement
Guest User

liquidwar-python3.diff

a guest
Nov 28th, 2023
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.00 KB | Software | 0 0
  1. diff -ur a/doc/makedoc.py b/doc/makedoc.py
  2. --- a/doc/makedoc.py    2018-12-23 11:04:36.000000000 -0800
  3. +++ b/doc/makedoc.py    2023-11-26 22:02:05.206117713 -0800
  4. @@ -10,7 +10,7 @@
  5.  
  6.  import xml.sax
  7.  
  8. -import string
  9. +string = str
  10.  import re
  11.  
  12.  def remove_duplicate_blanks(text):
  13. @@ -366,7 +366,7 @@
  14.          self.write("\n\\end{verbatim}\n")
  15.      def translate(self,data,tag):
  16.          result=data
  17. -   result=format_email_and_url(result)
  18. +        result=format_email_and_url(result)
  19.          if (tag!="code"):
  20.              result=format_tex(result)
  21.          return result
  22. @@ -405,7 +405,7 @@
  23.          self.write("\n")
  24.      def translate(self,data,tag):
  25.          result=data
  26. -   result=format_email_and_url(result)
  27. +        result=format_email_and_url(result)
  28.          result=string.replace(result,"\\","\\\\")
  29.          result=string.replace(result,".","\.")
  30.          result=string.replace(result,"-","\-")
  31. @@ -460,7 +460,7 @@
  32.          self.write("\n")
  33.      def translate(self,data,tag):
  34.          result=data
  35. -   result=format_email_and_url(result)
  36. +        result=format_email_and_url(result)
  37.          if (tag=="code"):
  38.              result=" "*self.indent+\
  39.                      string.replace(result,"\n","\n"+" "*self.indent)
  40. @@ -505,7 +505,7 @@
  41.          self.write("\n@end example\n")
  42.      def translate(self,data,tag):
  43.          result=data
  44. -   result=format_email_and_url(result)
  45. +        result=format_email_and_url(result)
  46.  
  47.          if (tag!="code"):
  48.              result=remove_duplicate_blanks(result)
  49. @@ -548,7 +548,7 @@
  50.          self.write("\n")
  51.      def translate(self,data,tag):
  52.          result=data
  53. -   result=format_email_and_url(result)
  54. +        result=format_email_and_url(result)
  55.  
  56.          if (tag=="code"):
  57.              result=format_uwc_code(result)
  58. @@ -560,7 +560,7 @@
  59.          return result
  60.  
  61.  def run_parser(handler,dst,src):
  62. -    dst_file=open(dst,"w")
  63. +    dst_file=open(dst,"wb")
  64.      src_file=open(src,"r")
  65.      #src_code=src_file.read()
  66.      parser=xml.sax.make_parser()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement