Mercurial > hg
comparison hgext/convert/common.py @ 36329:93943eef696f
py3: use pycompat.byteskwargs in hgext/convert/
Differential Revision: https://phab.mercurial-scm.org/D2355
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Mon, 19 Feb 2018 23:44:41 +0530 |
parents | 0f9e52f900c4 |
children | e218830f6f0a |
comparison
equal
deleted
inserted
replaced
36328:8d0b0b533e09 | 36329:93943eef696f |
---|---|
16 from mercurial.i18n import _ | 16 from mercurial.i18n import _ |
17 from mercurial import ( | 17 from mercurial import ( |
18 encoding, | 18 encoding, |
19 error, | 19 error, |
20 phases, | 20 phases, |
21 pycompat, | |
21 util, | 22 util, |
22 ) | 23 ) |
23 | 24 |
24 pickle = util.pickle | 25 pickle = util.pickle |
25 propertycache = util.propertycache | 26 propertycache = util.propertycache |
320 | 321 |
321 def postrun(self): | 322 def postrun(self): |
322 pass | 323 pass |
323 | 324 |
324 def _cmdline(self, cmd, *args, **kwargs): | 325 def _cmdline(self, cmd, *args, **kwargs): |
326 kwargs = pycompat.byteskwargs(kwargs) | |
325 cmdline = [self.command, cmd] + list(args) | 327 cmdline = [self.command, cmd] + list(args) |
326 for k, v in kwargs.iteritems(): | 328 for k, v in kwargs.iteritems(): |
327 if len(k) == 1: | 329 if len(k) == 1: |
328 cmdline.append('-' + k) | 330 cmdline.append('-' + k) |
329 else: | 331 else: |