diff mercurial/hgweb/webcommands.py @ 52638:dc36535a5edc

style: drop extraneous parentheses These were rewritten by `pyupgrade`.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 14:07:43 -0500
parents f4733654f144
children e627cc25b6f3
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Mon Jan 06 13:54:40 2025 -0500
+++ b/mercurial/hgweb/webcommands.py	Mon Jan 06 14:07:43 2025 -0500
@@ -1258,7 +1258,7 @@
         msg = b'Unsupported archive type: %s' % stringutil.pprint(type_)
         raise ErrorResponse(HTTP_NOT_FOUND, msg)
 
-    if not ((type_ in allowed or web.configbool(b"web", b"allow" + type_))):
+    if not (type_ in allowed or web.configbool(b"web", b"allow" + type_)):
         msg = b'Archive type not allowed: %s' % type_
         raise ErrorResponse(HTTP_FORBIDDEN, msg)