Project

General

Profile

Development #31145

python3 : retirer les appels à "execfile()", qui n'est plus une fonction native

Added by Paul Marillonnet 3 months ago. Updated 2 months ago.

Status:
Solution déployée
Priority:
Normal
Category:
-
Target version:
-
Start date:
06 Mar 2019
Due date:
% Done:

0%

Patch proposed:
Yes
Planning:
No

Description

et on remplace simplement par exec(open())

0001-python3-remove-execfile-which-isn-t-a-builtin-anymor.patch View (6.63 KB) Paul Marillonnet, 06 Mar 2019 05:38 PM

0001-python3-remove-execfile-which-isn-t-a-builtin-anymor.patch View (6.9 KB) Paul Marillonnet, 02 Apr 2019 12:04 PM


Related issues

Related to Authentic 2 - Development #28276: Fonctionner avec Python3 pour Django1.11 En cours 23 Nov 2018

Associated revisions

Revision 6d856ad3 (diff)
Added by Paul Marillonnet 3 months ago

python3: remove "execfile", which isn't a builtin anymore (#31145)

History

#1 Updated by Paul Marillonnet 3 months ago

#2 Updated by Paul Marillonnet 3 months ago

#3 Updated by Benjamin Dauvergne 3 months ago

Je préfèrerai plus idiomatique :

with open(path) as fd:
    exec(fd.read())

#4 Updated by Benjamin Dauvergne 3 months ago

  • Assignee set to Paul Marillonnet

#5 Updated by Benjamin Dauvergne 3 months ago

  • Status changed from Solution proposée to En cours

#6 Updated by Paul Marillonnet 3 months ago

#7 Updated by Benjamin Dauvergne 3 months ago

Ack.

#8 Updated by Paul Marillonnet 3 months ago

  • Status changed from Solution proposée to Résolu (à déployer)
commit 6d856ad3caefd35ca597817b99a416d17f403f65
Author: Paul Marillonnet <pmarillonnet@entrouvert.com>
Date:   Wed Mar 6 17:35:56 2019 +0100

    python3: remove "execfile", which isn't a builtin anymore (#31145)

#9 Updated by Frédéric Péters 2 months ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF