Project

General

Profile

Tâche #30050

Scénario #30011: Traitement express MEN (19-21)

Warning à l'enregistrement_zephir

Added by Fabrice Barconnière over 1 year ago. Updated over 1 year ago.

Status:
Fermé
Priority:
Normal
Start date:
03/05/2020
Due date:
% Done:

100%

Remaining (hours):
0.0

Description

/usr/bin/enregistrement_zephir:931: DeprecationWarning: Deprecated function call 'manage_service' by '__main__.main': Use new API "manage_services()" 
  manage_service('start', stats_service)

Associated revisions

Revision 8e3d506f (diff)
Added by Fabrice Barconnière over 1 year ago

Don't use deprecated function

ref #30050

History

#1 Updated by Fabrice Barconnière over 1 year ago

  • Status changed from Nouveau to En cours

#2 Updated by Fabrice Barconnière over 1 year ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#3 Updated by Joël Cuissinat over 1 year ago

Appliqué pour EOLE >= 2.8.0

~/git/zephir-client (master=)$ git branch -r --contains 8e3d506f 
  origin/HEAD -> origin/master
  origin/dist/eole/2.8.0/master
  origin/master

Cela laisse à penser que les DeprecationWarning n'étaient pas affichés à l'écran sur les versions précédentes (python2). [confirmé]

root@eolebase:~# python2 -c "from pyeole.service import manage_service;manage_service('stop', 'z_stats')" 
root@eolebase:~# python3 -c "from pyeole.service import manage_service;manage_service('stop', 'z_stats')" 
<string>:1: DeprecationWarning: Deprecated function call 'manage_service' by '__main__': Use new API "manage_services()" 

#4 Updated by Joël Cuissinat over 1 year ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

OK sachant qu'il en reste un paquet d'autres ;)
=> #30119

Also available in: Atom PDF