Modify

Opened 5 years ago

Closed 5 years ago

#13737 closed defect (fixed)

Python3: ModuleNotFoundError: No module named 'StringIO'

Reported by: Peter Suter Owned by: lucid
Priority: normal Component: TextareaKeyBindingsPlugin
Severity: normal Keywords: python3
Cc: Trac Release:

Description

Plugin fails to load with Python3:

	ModuleNotFoundError: No module named 'StringIO'

Attachments (0)

Change History (2)

comment:1 Changed 5 years ago by Peter Suter

  • textareakeybindings/web_ui.py

    diff -r e260b127af68 -r 8f7b74ad86ac textareakeybindings/web_ui.py
    a b  
    22
    33import pkg_resources
    44import re
    5 from StringIO import StringIO
     5try:
     6    from StringIO import StringIO # Python 2
     7except ImportError:
     8    from io import StringIO # Python 3
    69
    710from trac.core import *
    811from trac.web import IRequestFilter

comment:2 Changed 5 years ago by lucid

Resolution: fixed
Status: newclosed

In 17665:

TextareaKeyBindingsPlugin: Python3 compatibility.
(fix #13737)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain lucid.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.