diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-27 17:07:33 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-08-27 17:07:33 +0200 |
commit | a33d8062833d1bfec4777145cc484c1d6b9e141f (patch) | |
tree | 7d815f80cdcced2d36144b9b71760278d29ed007 /module/web/ajax/views.py | |
parent | locale fixes (diff) | |
download | pyload-a33d8062833d1bfec4777145cc484c1d6b9e141f.tar.xz |
some automatic fixes
Diffstat (limited to 'module/web/ajax/views.py')
-rw-r--r-- | module/web/ajax/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py index 82e478af3..7d5c1884c 100644 --- a/module/web/ajax/views.py +++ b/module/web/ajax/views.py @@ -59,7 +59,7 @@ def add_package(request): try: f = request.FILES['add_file'] - if name == None or name == "": + if name is None or name == "": name = f.name fpath = join(settings.PYLOAD.get_conf_val("general","download_folder"), "tmp_"+ f.name) @@ -71,7 +71,7 @@ def add_package(request): except: pass - if name == None or name == "": + if name is None or name == "": return HttpResponseServerError() links = map(lambda x: x.strip(), links) |