summaryrefslogtreecommitdiff
path: root/deps/v8/tools/release/auto_push.py
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/tools/release/auto_push.py')
-rwxr-xr-xdeps/v8/tools/release/auto_push.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/deps/v8/tools/release/auto_push.py b/deps/v8/tools/release/auto_push.py
index ca9e5e8734..4cb968787f 100755
--- a/deps/v8/tools/release/auto_push.py
+++ b/deps/v8/tools/release/auto_push.py
@@ -26,6 +26,9 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# for py2/py3 compatibility
+from __future__ import print_function
+
import argparse
import json
import os
@@ -63,7 +66,7 @@ class LastReleaseBailout(Step):
format="%H", git_hash="%s..%s" % (last_release, self["candidate"]))
if not commits:
- print "Already pushed current candidate %s" % self["candidate"]
+ print("Already pushed current candidate %s" % self["candidate"])
return True
@@ -71,7 +74,7 @@ class CreateRelease(Step):
MESSAGE = "Creating release if specified."
def RunStep(self):
- print "Creating release for %s." % self["candidate"]
+ print("Creating release for %s." % self["candidate"])
args = [
"--author", self._options.author,
@@ -96,7 +99,7 @@ class AutoPush(ScriptsBase):
def _ProcessOptions(self, options):
if not options.author or not options.reviewer: # pragma: no cover
- print "You need to specify author and reviewer."
+ print("You need to specify author and reviewer.")
return False
options.requires_editor = False
return True