Mercurial > p > roundup > code
diff roundup/cgi/TAL/TALGenerator.py @ 5388:d26921b851c3
Python 3 preparation: make relative imports explicit.
Tool-generated patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 22:22:08 +0000 |
| parents | 1556b39fde7c |
| children | a391a071d045 |
line wrap: on
line diff
--- a/roundup/cgi/TAL/TALGenerator.py Tue Jul 24 22:21:20 2018 +0000 +++ b/roundup/cgi/TAL/TALGenerator.py Tue Jul 24 22:22:08 2018 +0000 @@ -18,12 +18,12 @@ import re import cgi -import TALDefs +from . import TALDefs -from TALDefs import NAME_RE, TAL_VERSION -from TALDefs import I18NError, METALError, TALError -from TALDefs import parseSubstitution -from TranslationContext import TranslationContext, DEFAULT_DOMAIN +from .TALDefs import NAME_RE, TAL_VERSION +from .TALDefs import I18NError, METALError, TALError +from .TALDefs import parseSubstitution +from .TranslationContext import TranslationContext, DEFAULT_DOMAIN I18N_REPLACE = 1 I18N_CONTENT = 2 @@ -40,7 +40,7 @@ def __init__(self, expressionCompiler=None, xml=1, source_file=None): if not expressionCompiler: - from DummyEngine import DummyEngine + from .DummyEngine import DummyEngine expressionCompiler = DummyEngine() self.expressionCompiler = expressionCompiler self.CompilerError = expressionCompiler.getCompilerError()
