D3125: py3: convert user value to bytes by b'' prefix
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Thu Apr 5 15:26:12 EDT 2018
pulkit updated this revision to Diff 7751.
pulkit edited the summary of this revision.
pulkit retitled this revision from "py3: convert user value to bytes using pycompat.fsencode()" to "py3: convert user value to bytes by b'' prefix".
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3125?vs=7708&id=7751
REVISION DETAIL
https://phab.mercurial-scm.org/D3125
AFFECTED FILES
tests/test-journal-share.t
tests/test-journal.t
CHANGE DETAILS
diff --git a/tests/test-journal.t b/tests/test-journal.t
--- a/tests/test-journal.t
+++ b/tests/test-journal.t
@@ -6,7 +6,7 @@
> from mercurial import util, pycompat
> from mercurial.utils import dateutil, procutil
> def mockgetuser():
- > return 'foobar'
+ > return b'foobar'
>
> def mockmakedate():
> filename = os.path.join(os.environ['TESTTMP'], 'testtime')
diff --git a/tests/test-journal-share.t b/tests/test-journal-share.t
--- a/tests/test-journal-share.t
+++ b/tests/test-journal-share.t
@@ -6,7 +6,7 @@
> from mercurial import util
> from mercurial.utils import procutil
> def mockgetuser():
- > return 'foobar'
+ > return b'foobar'
>
> def mockmakedate():
> filename = os.path.join(os.environ['TESTTMP'], 'testtime')
To: pulkit, #hg-reviewers, yuja
Cc: yuja, mercurial-devel
More information about the Mercurial-devel
mailing list