Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: third_party/tlslite/tlslite/basedb.py

Issue 211173006: Perform tlslite 0.3.8 -> 0.4.6 renames ahead of time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Drop the -B Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/tlslite/tlslite/api.py ('k') | third_party/tlslite/tlslite/checker.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 """Base class for SharedKeyDB and VerifierDB.""" 1 """Base class for SharedKeyDB and VerifierDB."""
2 2
3 import anydbm 3 import anydbm
4 import thread 4 import thread
5 5
6 class BaseDB: 6 class BaseDB:
7 def __init__(self, filename, type): 7 def __init__(self, filename, type):
8 self.type = type 8 self.type = type
9 self.filename = filename 9 self.filename = filename
10 if self.filename: 10 if self.filename:
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 if self.db == None: 111 if self.db == None:
112 raise AssertionError("DB not open") 112 raise AssertionError("DB not open")
113 113
114 self.lock.acquire() 114 self.lock.acquire()
115 try: 115 try:
116 usernames = self.db.keys() 116 usernames = self.db.keys()
117 finally: 117 finally:
118 self.lock.release() 118 self.lock.release()
119 usernames = [u for u in usernames if not u.startswith("--Reserved--")] 119 usernames = [u for u in usernames if not u.startswith("--Reserved--")]
120 return usernames 120 return usernames
OLDNEW
« no previous file with comments | « third_party/tlslite/tlslite/api.py ('k') | third_party/tlslite/tlslite/checker.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698