# HG changeset patch # User Augie Fackler # Date 1519944469 18000 # Node ID d4c98b6724e1a7b4c39ad089884633d9af95d2f5 # Parent d60430dc78532a32a27eb08c0bee3ccc454b9ccb convcmd: use our shlex wrapper to avoid Python 3 tracebacks Differential Revision: https://phab.mercurial-scm.org/D2526 diff -r d60430dc7853 -r d4c98b6724e1 hgext/convert/convcmd.py --- a/hgext/convert/convcmd.py Thu Mar 01 17:47:35 2018 -0500 +++ b/hgext/convert/convcmd.py Thu Mar 01 17:47:49 2018 -0500 @@ -8,7 +8,6 @@ import collections import os -import shlex import shutil from mercurial.i18n import _ @@ -211,9 +210,7 @@ # 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):