mercurial/httprepo.py
changeset 4633 ff7253a0d1da
parent 4516 96d8a56d4ef9
child 4678 a814a5b11fff
--- a/mercurial/httprepo.py
+++ b/mercurial/httprepo.py
@@ -271,11 +271,11 @@ class httprepository(remoterepository):
             proto = resp.headers['content-type']
 
         # accept old "text/plain" and "application/hg-changegroup" for now
-        if not proto.startswith('application/mercurial-') and \
-               not proto.startswith('text/plain') and \
-               not proto.startswith('application/hg-changegroup'):
-            raise hg.RepoError(_("'%s' does not appear to be an hg repository") %
-                               self._url)
+        if not (proto.startswith('application/mercurial-') or
+                proto.startswith('text/plain') or
+                proto.startswith('application/hg-changegroup')):
+            raise hg.RepoError(_("'%s' does not appear to be an hg repository")
+                               % self._url)
 
         if proto.startswith('application/mercurial-'):
             try: