Mercurial > p > roundup > code
diff roundup/cgi/actions.py @ 5382:1556b39fde7c
Python 3 preparation: use != instead of <>.
Tool-generated patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 22:09:15 +0000 |
| parents | 35ea9b1efc14 |
| children | 23b8e6067f7c |
line wrap: on
line diff
--- a/roundup/cgi/actions.py Tue Jul 24 22:08:17 2018 +0000 +++ b/roundup/cgi/actions.py Tue Jul 24 22:09:15 2018 +0000 @@ -106,10 +106,10 @@ if parsed_url_tuple.scheme not in ('http', 'https'): raise ValueError(self._("Unrecognized scheme in %(url)s")%info) - if parsed_url_tuple.netloc <> parsed_base_url_tuple.netloc: + if parsed_url_tuple.netloc != parsed_base_url_tuple.netloc: raise ValueError(self._("Net location in %(url)s does not match base: %(base_netloc)s")%info) - if parsed_url_tuple.path.find(parsed_base_url_tuple.path) <> 0: + if parsed_url_tuple.path.find(parsed_base_url_tuple.path) != 0: raise ValueError(self._("Base path %(base_path)s is not a prefix for url %(url)s")%info) # I am not sure if this has to be language sensitive.
