diff options
Diffstat (limited to 'docutils/docutils/utils/math/math2html.py')
| -rw-r--r-- | docutils/docutils/utils/math/math2html.py | 59 |
1 files changed, 12 insertions, 47 deletions
diff --git a/docutils/docutils/utils/math/math2html.py b/docutils/docutils/utils/math/math2html.py index 1f61e23f8..49671655c 100644 --- a/docutils/docutils/utils/math/math2html.py +++ b/docutils/docutils/utils/math/math2html.py @@ -20,10 +20,21 @@ # Alex 20101110 # eLyXer standalone formula conversion to HTML. +import codecs +import datetime +import gettext +import io +import os.path +import sys +import unicodedata +import urllib +if sys.version_info >= (3,0): + unicode = str #noqa + basestring = str # noqa + file = io.IOBase # noqa -import sys class Trace(object): "A tracing class" @@ -73,12 +84,6 @@ class Trace(object): show = classmethod(show) - - -import os.path -import sys - - class BibStylesConfig(object): "Configuration class from elyxer.config file" @@ -1305,17 +1310,6 @@ class BranchOptions(object): return 'options for ' + self.name + ': ' + unicode(self.options) - - -import urllib - - - - - - - - class Cloner(object): "An object used to clone other objects." @@ -1699,15 +1693,6 @@ class StringOutput(ContainerOutput): return [container.string] - - - - - -import sys -import codecs - - class LineReader(object): "Reads a file line by line" @@ -3094,24 +3079,6 @@ class FormulaFactory(object): return whole - - -import unicodedata - - - - - - - - - - - - -import gettext - - class Translator(object): "Reads the configuration file and tries to find a translation." "Otherwise falls back to the messages in the config file." @@ -4589,8 +4556,6 @@ class BeginCommand(CommandBit): FormulaCommand.types += [BeginCommand] -import datetime - class CombiningFunction(OneParamFunction): |
