--- /usr/bin/gsettings-schema-convert 2015-10-16 08:52:01.000000000 -0600 +++ /home/lamont/gsettings-schema-convert 2015-11-24 15:18:44.884441535 -0700 @@ -603,7 +603,7 @@ for line in lines: current_line_nb += 1 self.parse_line(line) - except GSettingsSchemaConvertException, e: + except GSettingsSchemaConvertException as e: raise GSettingsSchemaConvertException('%s:%s: %s' % (os.path.basename(self.file), current_line_nb, e)) return self.root @@ -1095,7 +1095,7 @@ try: parser = GConfSchemaParser(argfile, options.gettext_domain, options.schema_id, options.keep_underscores) schema_root = parser.parse() - except SyntaxError, e: + except SyntaxError as e: raise GSettingsSchemaConvertException('\'%s\' does not look like a valid gconf schema file: %s' % (argfile, e)) else: # autodetect if file is XML or not @@ -1104,7 +1104,7 @@ schema_root = parser.parse() if not options.simple and not options.xml: options.simple = True - except SyntaxError, e: + except SyntaxError as e: parser = SimpleSchemaParser(argfile) schema_root = parser.parse() if not options.simple and not options.xml: @@ -1125,15 +1125,15 @@ else: try: fout = open(options.output, 'w') - fout.write(output) + fout.write(str(output)) fout.close() - except GSettingsSchemaConvertException, e: + except GSettingsSchemaConvertException as e: fout.close() if os.path.exists(options.output): os.unlink(options.output) raise e - except GSettingsSchemaConvertException, e: + except GSettingsSchemaConvertException as e: print >> sys.stderr, '%s' % e return 1