From 38082ccbee749d650ccea886ae376a5d1dec337c Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sat, 9 Oct 2021 12:16:17 +1100 Subject: Overdue internal UI enhancements (#8674) * frontend: Added support for message context to localisations. * frontend: Added string_view versions of the message lookup functions. * frontend: Added a few more folder options to the internal UI. * emu/softlist.cpp: Use more appropriate containers. * Switched to Python 3 by default - this will become a requirement. * Updated msgfmt.py for message context support. * frontend: Show all software item info in the internal UI. * frontend: Search alternate titles in software selection menu. * 3rdparty/utf8proc: Updated to v2.6.1 (has several fixes). * frontend: Added software filters for common info fields. * frontend: Allow UI manager to hold onto persistent session data. * frontend: Cache software lists for eight machines. * frontend: Added support for loading localised system names. * frontend: Add UI for selecting localised system names. --- scripts/build/complay.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'scripts/build/complay.py') diff --git a/scripts/build/complay.py b/scripts/build/complay.py index 445d25fe8ab..81516bc3ee7 100755 --- a/scripts/build/complay.py +++ b/scripts/build/complay.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 ## ## license:BSD-3-Clause ## copyright-holders:Vas Crabb @@ -12,11 +12,6 @@ import xml.sax.saxutils import zlib -# workaround for version incompatibility -if sys.version_info > (3, ): - long = int - - class ErrorHandler(object): def __init__(self, **kwargs): super(ErrorHandler, self).__init__(**kwargs) @@ -347,7 +342,7 @@ class LayoutChecker(Minifyer): self.handleError('Element mamelayout missing attribute version') else: try: - long(attrs['version']) + int(attrs['version']) except: self.handleError('Element mamelayout attribute version "%s" is not an integer' % (attrs['version'], )) self.have_script = None -- cgit v1.2.3-70-g09d2