diff -r 15d3facfa40a -r aaad36b88298 hgext/acl.py --- a/hgext/acl.py Sun Jan 13 20:13:22 2019 -0500 +++ b/hgext/acl.py Wed Feb 20 19:28:51 2019 -0500 @@ -293,15 +293,15 @@ # if ug is a user name: !username # if ug is a group name: !@groupname ug = ug[1:] - if not ug.startswith('@') and user != ug \ - or ug.startswith('@') and user not in _getusers(ui, ug[1:]): + if (not ug.startswith('@') and user != ug + or ug.startswith('@') and user not in _getusers(ui, ug[1:])): return True # Test for user or group. Format: # if ug is a user name: username # if ug is a group name: @groupname - elif user == ug \ - or ug.startswith('@') and user in _getusers(ui, ug[1:]): + elif (user == ug + or ug.startswith('@') and user in _getusers(ui, ug[1:])): return True return False