diff -r 588aff83bb87 -r c17b82b1f573 configfile.py --- a/configfile.py Mon Aug 03 19:45:57 2015 +0300 +++ b/configfile.py Tue Aug 04 22:39:22 2015 +0300 @@ -26,6 +26,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ''' +from __future__ import print_function import json, sys IsInitialized = False Config = None @@ -95,10 +96,10 @@ with open (ConfigFileName, 'w') as fp: json.dump (self.obj, fp, sort_keys = True, indent = 1) - print "Config saved." + print ("""Config saved.""") def find_developer_by_email (self, commit_email): - for developer, emails in self.get_value ('developer_emails', default={}).iteritems(): + for developer, emails in self.get_value ('developer_emails', default={}).items(): if commit_email in emails: return developer @@ -115,13 +116,13 @@ ConfigFileName = filename if not IsInitialized: - print """Loading configuration...""" + print ("""Loading configuration...""") try: with open (filename, 'r') as fp: jsondata = json.loads (fp.read()) except IOError as e: - print ("""couldn't open %s: %s""" % (filename, e)) + print ("""Couldn't open %s: %s""" % (filename, e)) quit() global Config