Skip to content

Commit bfa8ba1

Browse files
committed
Python 3 preparation: use != instead of <>.
Tool-generated patch.
1 parent 5e8f627 commit bfa8ba1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

roundup/cgi/TAL/TALGenerator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ def emitEndElement(self, name, isend=0, implied=0):
794794
# in case tal:content, i18n:translate and i18n:name in the
795795
# same tag insertTranslation opcode has already been
796796
# emitted
797-
if varname and (varname[1] <> I18N_CONTENT):
797+
if varname and (varname[1] != I18N_CONTENT):
798798
self.emitTranslation(msgid, i18ndata)
799799
if repeat:
800800
self.emitRepeat(repeat)

roundup/cgi/actions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,10 @@ def examine_url(self, url):
106106
if parsed_url_tuple.scheme not in ('http', 'https'):
107107
raise ValueError(self._("Unrecognized scheme in %(url)s")%info)
108108

109-
if parsed_url_tuple.netloc <> parsed_base_url_tuple.netloc:
109+
if parsed_url_tuple.netloc != parsed_base_url_tuple.netloc:
110110
raise ValueError(self._("Net location in %(url)s does not match base: %(base_netloc)s")%info)
111111

112-
if parsed_url_tuple.path.find(parsed_base_url_tuple.path) <> 0:
112+
if parsed_url_tuple.path.find(parsed_base_url_tuple.path) != 0:
113113
raise ValueError(self._("Base path %(base_path)s is not a prefix for url %(url)s")%info)
114114

115115
# I am not sure if this has to be language sensitive.

0 commit comments

Comments
 (0)