Skip to content

Commit e1f3544

Browse files
committed
Fix linting
1 parent 7aaef7c commit e1f3544

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

logstash_async/database.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from logstash_async.constants import constants
1212
from logstash_async.utils import ichunked
1313

14+
1415
DATABASE_SCHEMA_STATEMENTS = [
1516
'''
1617
CREATE TABLE IF NOT EXISTS `event` (

logstash_async/worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from limits.strategies import FixedWindowRateLimiter
1515

1616
from logstash_async.constants import constants
17-
from logstash_async.database import DatabaseCache, DatabaseLockedError, DatabaseDiskIOError
17+
from logstash_async.database import DatabaseCache, DatabaseDiskIOError, DatabaseLockedError
1818
from logstash_async.memory_cache import MemoryCache
1919
from logstash_async.utils import safe_log_via_print
2020

tests/database_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
# This software may be modified and distributed under the terms
44
# of the MIT license. See the LICENSE file for details.
55

6+
from stat import S_IREAD, S_IRGRP, S_IROTH, S_IWUSR
67
import os
78
import sqlite3
89
import time
910
import unittest
10-
from stat import S_IREAD, S_IRGRP, S_IROTH, S_IWUSR
1111

1212
from logstash_async.constants import constants
1313
from logstash_async.database import DATABASE_SCHEMA_STATEMENTS, DatabaseCache, DatabaseDiskIOError
@@ -64,7 +64,7 @@ def close_connection(cls):
6464
cls._connection = None
6565

6666
# ----------------------------------------------------------------------
67-
def testIOException(self):
67+
def test_disk_io_exception(self):
6868
self.cache.add_event("message")
6969
with self.assertRaises(DatabaseDiskIOError):
7070
# change permissions to produce error

0 commit comments

Comments
 (0)