comparison roundup/backends/sessions_dbm.py @ 3924:21d3d7eeea8c

assorted pyflakes fixes I (re-)discovered pyflakes today and ran it over to roundup code to see what it had to say. It reported a ton of "imported module foo but you're not actually using it" warnings and a couple of actual errors that this patch fixes. The code was wrong but it was mostly stuff that never gets executed...like hyperdb.Choice.
author Justus Pendleton <jpend@users.sourceforge.net>
date Thu, 27 Sep 2007 06:12:57 +0000
parents f2fda3e6fc8b
children 603ec9630b08
comparison
equal deleted inserted replaced
3923:d02aad94af5a 3924:21d3d7eeea8c
1 #$Id: sessions_dbm.py,v 1.7 2006-04-27 04:59:37 richard Exp $ 1 #$Id: sessions_dbm.py,v 1.8 2007-09-27 06:12:57 jpend Exp $
2 """This module defines a very basic store that's used by the CGI interface 2 """This module defines a very basic store that's used by the CGI interface
3 to store session and one-time-key information. 3 to store session and one-time-key information.
4 4
5 Yes, it's called "sessions" - because originally it only defined a session 5 Yes, it's called "sessions" - because originally it only defined a session
6 class. It's now also used for One Time Key handling too. 6 class. It's now also used for One Time Key handling too.
7 """ 7 """
8 __docformat__ = 'restructuredtext' 8 __docformat__ = 'restructuredtext'
9 9
10 import anydbm, whichdb, os, marshal, time 10 import anydbm, whichdb, os, marshal, time
11 from roundup import hyperdb
11 12
12 class BasicDatabase: 13 class BasicDatabase:
13 ''' Provide a nice encapsulation of an anydbm store. 14 ''' Provide a nice encapsulation of an anydbm store.
14 15
15 Keys are id strings, values are automatically marshalled data. 16 Keys are id strings, values are automatically marshalled data.

Roundup Issue Tracker: http://roundup-tracker.org/