+ debut=False
+ if debug :
+ import cProfile, pstats, StringIO
+ pr = cProfile.Profile()
+ pr.enable()
+ monEditeur.saveFileAs(fileName=fileName)
+ pr.disable()
+ s = StringIO.StringIO()
+ sortby = 'cumulative'
+ ps = pstats.Stats(pr, stream=s).sort_stats(sortby)
+ ps.print_stats()
+ print (s.getvalue())
+
+ elif not leger : monEditeur.saveFileAs(fileName=fileName)
+ else : monEditeur.saveFileLegerAs(fileName=fileName)