This is an archive of the discontinued Mercurial Phabricator instance.

util: remove dead code which used to be for old python2 versions
ClosedPublic

Authored by alex_gaynor on Jul 17 2017, 12:38 PM.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alex_gaynor created this revision.Jul 17 2017, 12:38 PM
durin42 accepted this revision.Jul 17 2017, 12:43 PM
This revision is now accepted and ready to land.Jul 17 2017, 12:43 PM

It's worth noting that in theory it should be possible to transition from buffer to memoryview. However, there are various bugs in various Python 2 versions where memoryview isn't accepted. Most notable is that the zlib module doesn't accept memoryview until Python 3 IIRC. So we're stuck with buffer for a while :/

@indygreg good flag, @durin42 and I had been discussing the "always use memoryview" as a potential follow up patch.

For now this just deletes some dead code.

This revision was automatically updated to reflect the committed changes.