Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mycli/completion_refresher.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from mycli.sqlexecute import ServerSpecies, SQLExecute


class CompletionRefresher(object):
class CompletionRefresher:
refreshers = OrderedDict()

def __init__(self):
Expand Down
2 changes: 1 addition & 1 deletion mycli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class PasswordFileError(Exception):
"""Base exception for errors related to reading password files."""


class MyCli(object):
class MyCli:
default_prompt = "\\t \\u@\\h:\\d> "
default_prompt_splitln = "\\u@\\h\\n(\\t):\\d>"
max_len_prompt = 45
Expand Down
2 changes: 1 addition & 1 deletion mycli/packages/special/delimitercommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sqlparse # type: ignore[import-untyped]


class DelimiterCommand(object):
class DelimiterCommand:
def __init__(self) -> None:
self._delimiter = ";"

Expand Down
2 changes: 1 addition & 1 deletion mycli/sqlexecute.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def __str__(self):
return self.version_str


class SQLExecute(object):
class SQLExecute:
databases_query = """SHOW DATABASES"""

tables_query = """SHOW TABLES"""
Expand Down
2 changes: 1 addition & 1 deletion test/test_tabular_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def test_sql_output(mycli):
"""Test the sql output adapter."""
headers = ["letters", "number", "optional", "float", "binary"]

class FakeCursor(object):
class FakeCursor:
def __init__(self):
self.data = [("abc", 1, None, 10.0, b"\xaa"), ("d", 456, "1", 0.5, b"\xaa\xbb")]
self.description = [
Expand Down