MSYS2-packages/asciidoc/0002-use-python2-in-cmd.patch
2019-06-10 09:16:23 +03:00

12 lines
507 B
Diff

--- asciidoc-py3/a2x.py.orig 2019-06-07 22:23:57.665795800 +0300
+++ asciidoc-py3/a2x.py 2019-06-07 22:24:02.876093800 +0300
@@ -203,7 +203,7 @@
if not mo:
mo = re.match(r'^\s*(?P<arg0>[^ ]+)', cmd)
if mo.group('arg0').endswith('.py'):
- cmd = 'python ' + cmd
+ cmd = 'python2 ' + cmd
# Remove redundant quoting -- this is not just cosmetic,
# quoting seems to dramatically decrease the allowed command
# length in Windows XP.