Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHGda9ecbb10368: vfs: more attribute suppressions
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/vfs.py (8 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
fa754e3efbd5 | 5ccfb06797c3 | Augie Fackler | Nov 6 2019, 3:35 PM |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
% mode | % mode | ||||
) | ) | ||||
fp = checkambigatclosing(fp) | fp = checkambigatclosing(fp) | ||||
if backgroundclose and isinstance( | if backgroundclose and isinstance( | ||||
threading.currentThread(), | threading.currentThread(), | ||||
threading._MainThread, # pytype: disable=module-attr | threading._MainThread, # pytype: disable=module-attr | ||||
): | ): | ||||
if not self._backgroundfilecloser: | if ( | ||||
not self._backgroundfilecloser | |||||
): # pytype: disable=attribute-error | |||||
raise error.Abort( | raise error.Abort( | ||||
_( | _( | ||||
b'backgroundclose can only be used when a ' | b'backgroundclose can only be used when a ' | ||||
b'backgroundclosing context manager is active' | b'backgroundclosing context manager is active' | ||||
) | ) | ||||
) | ) | ||||
fp = delayclosedfile(fp, self._backgroundfilecloser) | fp = delayclosedfile( | ||||
fp, self._backgroundfilecloser | |||||
) # pytype: disable=attribute-error | |||||
return fp | return fp | ||||
def symlink(self, src, dst): | def symlink(self, src, dst): | ||||
self.audit(dst) | self.audit(dst) | ||||
linkname = self.join(dst) | linkname = self.join(dst) | ||||
util.tryunlink(linkname) | util.tryunlink(linkname) | ||||