From 50867a2975a815adccec112bb1f9590718f4b4d7 Mon Sep 17 00:00:00 2001 From: James Vasile Date: Fri, 2 Nov 2012 14:46:39 -0400 Subject: crucial typo --- withsqlite.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/withsqlite.py b/withsqlite.py index 19370a0..cab4b2c 100644 --- a/withsqlite.py +++ b/withsqlite.py @@ -112,7 +112,7 @@ True def __init__(self, fname, autocommit=False): self.fname = fname + ".sqlite3" - self.autocomit = autocommit + self.autocommit = autocommit def __enter__(self): if not os.path.exists(self.fname): self.make_db() @@ -124,7 +124,6 @@ True def __exit__(self, type, value, traceback): self.conn.commit() self.crsr.close() - def make_db(self): conn = sqlite3.connect(self.fname) c = conn.cursor() -- cgit v1.2.3