document: fixes for lint checks

bzr revid: p_christ@hol.gr-20101103112604-nh7xqcx5e17h3wjo
This commit is contained in:
P. Christeas
2010-11-03 13:26:04 +02:00
parent 1bfecf1827
commit 0c13466702
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -667,7 +667,7 @@ class document_storage(osv.osv):
if ktype == 'file':
try:
os.unlink(fname)
except Exception, e:
except Exception:
self._doclog.warning("Could not remove file %s, please remove manually.", fname, exc_info=True)
else:
self._doclog.warning("Unknown unlink key %s" % ktype)
+1 -1
View File
@@ -1496,7 +1496,7 @@ class nodefd_static(StringIO, node_descriptor):
return
par = self._get_parent()
uid = par.context.uid
# uid = par.context.uid
cr = pooler.get_db(par.context.dbname).cursor()
try:
if self.mode in ('w', 'w+', 'r+'):