[Updated] D11920: statprof: convert a few exception byte strings to str
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Fri Dec 17 11:11:03 UTC 2021
Closed by commit rHGc1fe758c1530: statprof: convert a few exception byte strings to str (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11920?vs=31477&id=31514
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11920/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11920
AFFECTED FILES
mercurial/statprof.py
CHANGE DETAILS
diff --git a/mercurial/statprof.py b/mercurial/statprof.py
--- a/mercurial/statprof.py
+++ b/mercurial/statprof.py
@@ -516,7 +516,7 @@
elif format == DisplayFormats.Chrome:
write_to_chrome(data, fp, **kwargs)
else:
- raise Exception(b"Invalid display format")
+ raise Exception("Invalid display format")
if format not in (DisplayFormats.Json, DisplayFormats.Chrome):
fp.write(b'---\n')
@@ -625,7 +625,7 @@
def display_about_method(data, fp, function=None, **kwargs):
if function is None:
- raise Exception(b"Invalid function")
+ raise Exception("Invalid function")
filename = None
if b':' in function:
@@ -1080,7 +1080,7 @@
printusage()
return 0
else:
- assert False, b"unhandled option %s" % o
+ assert False, "unhandled option %s" % o
if not path:
print('must specify --file to load')
To: mharbison72, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211217/5aa37a7a/attachment-0002.html>
More information about the Mercurial-patches
mailing list