Mercurial > evolve
changeset 4462:7b13256a6a8e stable
obsexchange: avoid importing io/StringIO module with a different name
Since we're not interested in the whole module, let's shorten the imports and
aviod the lint warnings.
Otherwise pep8-naming complains:
- import io as StringIO: N812 lowercase imported as non lowercase
- import StringIO as io: N813 camelcase imported as lowercase
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Wed, 13 Feb 2019 21:56:29 +0800 |
parents | 7f87ef9f0224 |
children | 7d54a538dd1e |
files | hgext3rd/evolve/obsexchange.py |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/evolve/obsexchange.py Wed Feb 13 21:56:05 2019 +0800 +++ b/hgext3rd/evolve/obsexchange.py Wed Feb 13 21:56:29 2019 +0800 @@ -8,11 +8,9 @@ from __future__ import absolute_import try: - import StringIO as io - StringIO = io.StringIO + from StringIO import StringIO except ImportError: - import io - StringIO = io.StringIO + from io import StringIO from mercurial import ( bundle2,