summaryrefslogtreecommitdiff
path: root/addons/document_webdav/document_webdav.py
diff options
context:
space:
mode:
authoruco (OpenERP) <uco@tinyerp.com>2010-11-23 12:35:05 +0530
committeruco (OpenERP) <uco@tinyerp.com>2010-11-23 12:35:05 +0530
commit6dd290e8245f4ea91ce87b0f3b5f29bafeaf12e9 (patch)
tree81db1734d8400a9278e5669da35bbe90076397c0 /addons/document_webdav/document_webdav.py
parent8035df3e1152a8f9d9703037d9d1bee718d94331 (diff)
[REF]: Replace the condition 'if not context' with 'if context is None'.
bzr revid: uco@tinyerp.com-20101123070505-9i2lrqhgxzaii3zn
Diffstat (limited to 'addons/document_webdav/document_webdav.py')
-rw-r--r--addons/document_webdav/document_webdav.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/addons/document_webdav/document_webdav.py b/addons/document_webdav/document_webdav.py
index b06032089aa..d2107e4f927 100644
--- a/addons/document_webdav/document_webdav.py
+++ b/addons/document_webdav/document_webdav.py
@@ -46,8 +46,6 @@ class document_davdir(osv.osv):
raise ValueError("dir node for %s type", dbro.type)
def _prepare_context(self, cr, uid, nctx, context=None):
- if not context:
- context = {}
nctx.node_file_class = nodes.node_file
# We can fill some more fields, but avoid any expensive function
# that might be not worth preparing.