Mercurial > hg
comparison mercurial/cmdutil.py @ 35197:bfd072c52e03
py3: use bytes in place of basestring
All strings in mercurial must be bytes so we can easily replace basestring with
bytes.
Differential Revision: https://phab.mercurial-scm.org/D1555
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 01 Dec 2017 16:53:55 +0530 |
parents | 5cc14407a739 |
children | 4ee493ea1c13 |
comparison
equal
deleted
inserted
replaced
35196:5cc14407a739 | 35197:bfd072c52e03 |
---|---|
3720 if interactive: | 3720 if interactive: |
3721 util.copyfile(target, bakname) | 3721 util.copyfile(target, bakname) |
3722 else: | 3722 else: |
3723 util.rename(target, bakname) | 3723 util.rename(target, bakname) |
3724 if ui.verbose or not exact: | 3724 if ui.verbose or not exact: |
3725 if not isinstance(msg, basestring): | 3725 if not isinstance(msg, bytes): |
3726 msg = msg(abs) | 3726 msg = msg(abs) |
3727 ui.status(msg % rel) | 3727 ui.status(msg % rel) |
3728 elif exact: | 3728 elif exact: |
3729 ui.warn(msg % rel) | 3729 ui.warn(msg % rel) |
3730 break | 3730 break |