# HG changeset patch # User Augie Fackler # Date 2018-03-01 22:47:49 # Node ID d4c98b6724e1a7b4c39ad089884633d9af95d2f5 # Parent d60430dc78532a32a27eb08c0bee3ccc454b9ccb convcmd: use our shlex wrapper to avoid Python 3 tracebacks Differential Revision: https://phab.mercurial-scm.org/D2526 diff --git a/hgext/convert/convcmd.py b/hgext/convert/convcmd.py --- a/hgext/convert/convcmd.py +++ b/hgext/convert/convcmd.py @@ -8,7 +8,6 @@ from __future__ import absolute_import import collections import os -import shlex import shutil from mercurial.i18n import _ @@ -211,9 +210,7 @@ class converter(object): # Ignore blank lines continue # split line - lex = shlex.shlex(line, posix=True) - lex.whitespace_split = True - lex.whitespace += ',' + lex = common.shlexer(data=line, whitespace=',') line = list(lex) # check number of parents if not (2 <= len(line) <= 3):