[sagenb] 69/179: use '' as default value for form.get()

felix salfelder felix-guest at moszumanska.debian.org
Tue May 6 12:05:11 UTC 2014


This is an automated email from the git hooks/post-receive script.

felix-guest pushed a commit to branch master
in repository sagenb.

commit b6aa62de721af1371bcf7bc609ff87f23cfd5c79
Author: Robin Martinjak <rob at rmartinjak.de>
Date:   Fri Mar 22 17:05:13 2013 +0100

    use '' as default value for form.get()
---
 sagenb/notebook/conf.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sagenb/notebook/conf.py b/sagenb/notebook/conf.py
index e573e55..049c12e 100644
--- a/sagenb/notebook/conf.py
+++ b/sagenb/notebook/conf.py
@@ -98,7 +98,7 @@ class Configuration(object):
                 # is not in sync with defaults, someone has tampered
                 # with the request arguments, etc.
                 continue
-            val = form.get(key, None)
+            val = form.get(key, '')
 
             if typ == T_BOOL:
                 if val:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/sagenb.git



More information about the debian-science-commits mailing list