Skip to content

Python3 Support #1

@deton

Description

@deton

Error on Python3.

https://mail-index.netbsd.org/pkgsrc-wip-changes/2024/07/20/msg030934.html

+engine.pyfactory.pymain.py  File "/usr/pkg/share/ibus-tutcode/engine/main.py", line 85
+    except getopt.GetoptError, err:
+           ^^^^^^^^^^^^^^^^^^^^^^^
+SyntaxError: multiple exception types must be parenthesized
+
+tutcode.pyskkdict.py  File "/usr/pkg/share/ibus-tutcode/engine/skkdict.py", line 111
+    except IOError, OSError:
+           ^^^^^^^^^^^^^^^^
+SyntaxError: multiple exception types must be parenthesized
...
+config.py  File "/usr/pkg/share/ibus-tutcode/setup/config.py", line 58
+    print "Can't read config file:", self.__config_path_unexpanded, sys.exc_info()[:1]
+    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions