summaryrefslogtreecommitdiffstats
path: root/module/web/ajax/views.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-27 17:07:33 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-27 17:07:33 +0200
commita33d8062833d1bfec4777145cc484c1d6b9e141f (patch)
tree7d815f80cdcced2d36144b9b71760278d29ed007 /module/web/ajax/views.py
parentlocale fixes (diff)
downloadpyload-a33d8062833d1bfec4777145cc484c1d6b9e141f.tar.xz
some automatic fixes
Diffstat (limited to 'module/web/ajax/views.py')
-rw-r--r--module/web/ajax/views.py4
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)