This is an archive of the discontinued Mercurial Phabricator instance.

py3: use util.buffer instead of buffer in remotefilelog
AbandonedPublic

Authored by pulkit on Dec 14 2018, 11:42 AM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

This fixes test-remotefilelog-bundles.t on Python 3.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Dec 14 2018, 11:42 AM
yuja added a subscriber: yuja.Dec 14 2018, 8:19 PM
  • if isinstance(text, buffer):

+ if isinstance(text, util.buffer):

text = str(text)

util.buffer isn't a type object on Python 3. Given str(text) didn't
explode, such cases wouldn't be covered by the tests.

pulkit abandoned this revision.Jan 29 2019, 6:56 AM