Skip to content

Commit b95a306

Browse files
author
Carl Brasic
committed
Point to python3 executable for rendering RST
#919 added support for python3, but we still explicitly shell out to the `python2` executable. Let's switch to python3 now that it's supported. This bumps the major version because it's a breaking change for anyone running in an environment with only python2.
1 parent 194e363 commit b95a306

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/github-markup.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module GitHub
22
module Markup
3-
VERSION = '3.0.5'
3+
VERSION = '4.0.0'
44
Version = VERSION
55
end
66
end

lib/github/markups.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
command(
5151
::GitHub::Markups::MARKUP_RST,
52-
"python2 -S #{Shellwords.escape(File.dirname(__FILE__))}/commands/rest2html",
52+
"python3 -S #{Shellwords.escape(File.dirname(__FILE__))}/commands/rest2html",
5353
/re?st(\.txt)?/,
5454
["reStructuredText"],
5555
"restructuredtext"

0 commit comments

Comments
 (0)