Modify

Opened 5 years ago

Closed 5 years ago

#13741 closed defect (fixed)

Python3: AttributeError: 'dict' object has no attribute 'iteritems'

Reported by: lucid Owned by: lucid
Priority: normal Component: PullRequestsPlugin
Severity: normal Keywords: python3
Cc: Trac Release:

Description

Plugin fails in Python 3:

Traceback (most recent call last):
  File "trac\web\main.py", line 617, in dispatch_request
    dispatcher.dispatch(req)
  File "trac\web\main.py", line 303, in dispatch
    raise e
  File "trac\web\main.py", line 253, in dispatch
    self._post_process_request(req, *resp)
  File "trac\web\main.py", line 471, in _post_process_request
    resp = f.post_process_request(req, *resp)
  File "pullrequests\web_ui.py", line 120, in post_process_request
    self._append_pr_links(req, data)
  File "pullrequests\web_ui.py", line 126, in _append_pr_links
    items = PullRequest.select(self.env, ticket=str(ticket.id))
  File "pullrequests\model.py", line 93, in select
    for name, value in sorted(kwargs.iteritems()):
AttributeError: 'dict' object has no attribute 'iteritems'

Attachments (0)

Change History (1)

comment:1 Changed 5 years ago by lucid

Resolution: fixed
Status: newclosed

In 17663:

PullRequestsPlugin: Python3 compatibility.
(fix #13741)

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.