diff options
| author | Abhilash Raj | 2014-09-23 15:28:07 +0530 |
|---|---|---|
| committer | Abhilash Raj | 2014-09-23 15:28:07 +0530 |
| commit | 20b41091f37bbf61c646c2e1586b73269304da2c (patch) | |
| tree | 8d83bf82f4949025109f639b83ba86aefe8ec576 /src/mailman/database/sqlite.py | |
| parent | fa030f90a6e3eb1b2c472922e42fe929f016019f (diff) | |
| parent | 31aebefadf7853a4e7767ea1552720f52e06bb7a (diff) | |
| download | mailman-20b41091f37bbf61c646c2e1586b73269304da2c.tar.gz mailman-20b41091f37bbf61c646c2e1586b73269304da2c.tar.zst mailman-20b41091f37bbf61c646c2e1586b73269304da2c.zip | |
Diffstat (limited to 'src/mailman/database/sqlite.py')
| -rw-r--r-- | src/mailman/database/sqlite.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/database/sqlite.py b/src/mailman/database/sqlite.py index 0594d9091..b70e474cc 100644 --- a/src/mailman/database/sqlite.py +++ b/src/mailman/database/sqlite.py @@ -56,7 +56,7 @@ class SQLiteDatabase(SABaseDatabase): assert parts.scheme == 'sqlite', ( 'Database url mismatch (expected sqlite prefix): {0}'.format(url)) path = os.path.normpath(parts.path) - fd = os.open(path, os.O_WRONLY | os.O_NONBLOCK | os.O_CREAT, 0666) + fd = os.open(path, os.O_WRONLY | os.O_NONBLOCK | os.O_CREAT, 0o666) # Ignore errors if fd > 0: os.close(fd) @@ -72,7 +72,7 @@ def _cleanup(self, tempdir): def make_temporary(database): """Adapts by monkey patching an existing SQLite IDatabase.""" tempdir = tempfile.mkdtemp() - url = 'sqlite:///' + os.path.join(tempdir, 'mailman.db') + url = 'sqlite:///' + os.path.join(tempdir, 'mailman.db') with configuration('database', url=url): database.initialize() database._cleanup = types.MethodType( |
