##// END OF EJS Templates
typing: rewrite a conditional assignment to unconfuse pytype...
Matt Harbison -
r47551:86b47ec1 stable
parent child Browse files
Show More
@@ -2891,7 +2891,7 b' class localrepository(object):'
2891 2891
2892 2892 If both 'lock' and 'wlock' must be acquired, ensure you always acquires
2893 2893 'wlock' first to avoid a dead-lock hazard."""
2894 l = self._wlockref and self._wlockref()
2894 l = self._wlockref() if self._wlockref else None
2895 2895 if l is not None and l.held:
2896 2896 l.lock()
2897 2897 return l
General Comments 0
You need to be logged in to leave comments. Login now