From 477fdda54e5081d831c12c9c4e4f8b8814a6e7f1 Mon Sep 17 00:00:00 2001 From: flyingleafe Date: Tue, 5 Aug 2014 14:22:27 +0600 Subject: Fixing syntax error while making with python 2 --- tools/json2hash | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'tools') diff --git a/tools/json2hash b/tools/json2hash index 2ac6cdd..ae2505f 100755 --- a/tools/json2hash +++ b/tools/json2hash @@ -1,5 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- +from __future__ import print_function import json import sys import os @@ -98,7 +99,4 @@ if __name__ == '__main__': try: main() except ApplicationException as e: - if python2: - print >> sys.stderr, e.message - elif python3: - print(e.meesage, file=sys.stderr) + print(e.message, file=sys.stderr) -- cgit v1.2.3