Modify ↓
Opened 5 years ago
Closed 5 years ago
#13739 closed defect (fixed)
Python3: NameError: name 'unichr' is not defined / SyntaxError: invalid syntax
Reported by: | Peter Suter | Owned by: | lucid |
---|---|---|---|
Priority: | normal | Component: | MailArchivePlugin |
Severity: | normal | Keywords: | python3 |
Cc: | Trac Release: |
Description
Plugin fails in Python 3:
Traceback (most recent call last): File "trac\loader.py", line 80, in _load_eggs entry.load(require=True) File "pkg_resources\__init__.py", line 2443, in load return self.resolve() File "pkg_resources\__init__.py", line 2449, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "mailarchive\web_ui.py", line 24, in <module> from mailarchive.model import ArchivedMail File "mailarchive\model.py", line 44, in <module> map(unichr, xrange(0x10000)))) + NameError: name 'unichr' is not defined
Traceback (most recent call last): File "trac\loader.py", line 80, in _load_eggs entry.load(require=True) File "pkg_resources\__init__.py", line 2443, in load return self.resolve() File "pkg_resources\__init__.py", line 2449, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "mailarchive\admin.py", line 52 print "Skipping mail with UID %s" % (uid,) ^ SyntaxError: invalid syntax (admin.py, line 52)
Attachments (0)
Change History (3)
comment:1 Changed 5 years ago by
comment:3 Changed 5 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
mailarchive/admin.py
"Skipping mail with UID %s" % (uid,)mailarchive/model.py
mailarchive/web_ui.py
ritems())