##// END OF EJS Templates
safehasattr: pass attribute name as string instead of bytes...
marmoute -
r51449:7b0cc86c default
parent child Browse files
Show More
@@ -1450,7 +1450,7 b' def openstorage(repo, cmd, file_, opts, '
1450 1450 if returnrevlog:
1451 1451 if isinstance(r, revlog.revlog):
1452 1452 pass
1453 elif util.safehasattr(r, b'_revlog'):
1453 elif util.safehasattr(r, '_revlog'):
1454 1454 r = r._revlog # pytype: disable=attribute-error
1455 1455 elif r is not None:
1456 1456 raise error.InputError(
General Comments 0
You need to be logged in to leave comments. Login now