HomePhabricator

py3: use raw strings and %d for formatting

Authored by indygreg.

Description

py3: use raw strings and %d for formatting

Before the string compares on Python 3 failed because we were
comparing bytes to str. Using raw strings ensures we are
always comparing str.

While we're here, also use %d to format integers.

Differential Revision: https://phab.mercurial-scm.org/D5925

Details

Committed
indygregFeb 10 2019, 5:04 PM
Differential Revision
D5925: py3: use raw strings and %d for formatting
Parents
rHGdb69a763bc89: diff: make --stat respect ui.relative-paths
Branches
Unknown
Tags
Unknown