summaryrefslogtreecommitdiffstats
path: root/Demo/classes/Dbm.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/classes/Dbm.py')
-rwxr-xr-xDemo/classes/Dbm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/classes/Dbm.py b/Demo/classes/Dbm.py
index 0bd5491..8d7fe0f 100755
--- a/Demo/classes/Dbm.py
+++ b/Demo/classes/Dbm.py
@@ -41,11 +41,11 @@ class Dbm:
def test():
- d = Dbm('@dbm', 'rw', 0666)
+ d = Dbm('@dbm', 'rw', 0600)
print d
while 1:
try:
- key = eval(raw_input('key: '))
+ key = input('key: ')
if d.has_key(key):
value = d[key]
print 'currently:', value