[Django] #29565: SyntaxError when running in Python 3.7

6 views
Skip to first unread message

Django

unread,
Jul 14, 2018, 10:18:46 PM7/14/18
to django-...@googlegroups.com
#29565: SyntaxError when running in Python 3.7
-----------------------------------------+------------------------
Reporter: Federico Bond | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Django 1.11.14 throws Syntax error while loading
django.contrib.admin.widgets in Python 3.7.

{{{
File "./env/lib/python3.7/site-
packages/django/contrib/admin/widgets.py", line 152
'%s=%s' % (k, v) for k, v in params.items(),
^
SyntaxError: Generator expression must be parenthesized
}}}

This can be fixed by removing the trailing comma at the end of the line.

--
Ticket URL: <https://code.djangoproject.com/ticket/29565>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 15, 2018, 2:32:00 AM7/15/18
to django-...@googlegroups.com
#29565: SyntaxError when running in Python 3.7
-------------------------------+--------------------------------------

Reporter: Federico Bond | Owner: nobody
Type: Bug | Status: closed
Component: contrib.admin | Version: 1.11
Severity: Normal | Resolution: wontfix

Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Carlton Gibson):

* status: new => closed
* resolution: => wontfix


Comment:

Django 1.11 does not support Python3.7, as per
https://docs.djangoproject.com/en/2.0/faq/install/

You’ll need to upgrade to 2.0 or later.

--
Ticket URL: <https://code.djangoproject.com/ticket/29565#comment:1>

Reply all
Reply to author
Forward
0 new messages