small code simplification

8 jobs for master in 0 seconds
Status Job ID Name Coverage
  External
passed ERP5.CodingStyleTest-Master

03:41:04

passed ERP5.PerformanceTest-Master

00:27:06

failed ERP5.UnitTest-Master

00:53:09

failed ERP5.UnitTest-Master.Medusa

02:20:08

passed SlapOS.Eggs.UnitTest-Master.Python2

00:17:11

passed SlapOS.Eggs.UnitTest-Master.Python3

00:17:43

failed ERP5.UnitTest-Master

01:50:05

canceled ERP5.UnitTest-Master