Mercurial > hg-stable
changeset 32571:2dd8d4108249
cmdutil: drop deprecated hack to pass file object to makefileobj() (API)
All callers pass a string 'pat' or None.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 25 May 2017 21:25:49 +0900 |
parents | 044f3d7eb9ae |
children | 447bbd970047 |
files | mercurial/cmdutil.py |
diffstat | 1 files changed, 0 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon May 29 21:57:51 2017 +0900 +++ b/mercurial/cmdutil.py Thu May 25 21:25:49 2017 +0900 @@ -641,10 +641,6 @@ else: fp = repo.ui.fin return _unclosablefile(fp) - if util.safehasattr(pat, 'write') and writable: - return pat - if util.safehasattr(pat, 'read') and 'r' in mode: - return pat fn = makefilename(repo, pat, node, desc, total, seqno, revwidth, pathname) if modemap is not None: mode = modemap.get(fn, mode)