From b77dd7b0ca3fb0cd19fe2b1de8adfe75b96ff40e Mon Sep 17 00:00:00 2001 From: Leonardo Date: Fri, 25 Jun 2010 14:40:44 +0200 Subject: [PATCH] Tolti alcuni is che non avevano senso --- example_script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example_script.py b/example_script.py index a2a12d8..4a86dde 100755 --- a/example_script.py +++ b/example_script.py @@ -60,12 +60,12 @@ mail_text += "Duration of the download: %s.\n\n" % duration recipients = [ "user1@provider.com", "user2@anotherprovider.org" , "owner" ] # Move download to the right place -if download.get_type() is "video": +if download.get_type() == "video": download.move("/shared/Films") mail_text += "The file has been recognized as a film so it has been copied\n" mail_text += "in /shared/Films.\n" -elif download.get_type() is "audio": +elif download.get_type() == "audio": download.move("/shared/Musica") mail_text += "The file has been recognized as music so it has been copied\n" mail_text += "in /shared/Music.\n" -- 2.1.4