argument options en trop dans action remove

This commit is contained in:
Daniel STAN 2013-07-30 13:04:56 +02:00
parent 114d97aa4a
commit 8c0a6dd5a3

View file

@ -668,7 +668,7 @@ def confirm(options, text):
def remove_file(options):
"""Supprime un fichier"""
fname = options.fname
if not confirm(options, u'Êtes-vous sûr de vouloir supprimer %s ?' % (fname,), options):
if not confirm(options, u'Êtes-vous sûr de vouloir supprimer %s ?' % (fname,)):
return
message = rm_file(fname)
print(message.encode("utf-8"))