fixed typo in storage.py

This commit is contained in:
Massimo Di Pierro
2012-03-02 10:03:40 -06:00
parent f274cfed6c
commit 54b6b9d995
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
- db = DAL('mongodb://127.0.0.1:5984/db') (experimental, thanks Mark Breedveld)
- db = DAL('cubrid') (experimental)
- db = DAL('postgres:pg8000:...') and DAL('postgres:psycopg2:...')
- pg8000 now ships with web2py )thanks Mariano)
- pg8000 now ships with web2py (thanks Mariano)
- reponse.delimiters = ('\\[','\\]') (thanks Denes)
- auth.user_groups stores user groups
- auth.is_impersonating()
+1 -1
View File
@@ -1 +1 @@
Version 1.99.5 (2012-03-01 15:20:14) stable
Version 1.99.5 (2012-03-02 10:03:17) stable
+2 -2
View File
@@ -174,7 +174,7 @@ class StorageList(Storage):
def load_storage(filename):
fp = None
try:
fp = portalocker.LockFile(filename, 'rb')
fp = portalocker.LockedFile(filename, 'rb')
storage = cPickle.load(fp)
finally:
if fp: fp.close()
@@ -184,7 +184,7 @@ def load_storage(filename):
def save_storage(storage, filename):
fp = None
try:
fp = portalocker.LockFile(filename, 'wb')
fp = portalocker.LockedFile(filename, 'wb')
cPickle.dump(dict(storage), fp)
finally:
if fp: fp.close()