diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-22 18:26:50 +0200 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-07-22 18:26:50 +0200 |
commit | 4a01e073aee4b3b1da1f74531ca5018b565eeddb (patch) | |
tree | 241317b274c2b7dd29fb6e3b0286cce7bbaee773 | |
parent | f107ecd9536d114a1aef54ce426b5b5c7c97861f (diff) | |
download | poezio-4a01e073aee4b3b1da1f74531ca5018b565eeddb.tar.gz poezio-4a01e073aee4b3b1da1f74531ca5018b565eeddb.tar.bz2 poezio-4a01e073aee4b3b1da1f74531ca5018b565eeddb.tar.xz poezio-4a01e073aee4b3b1da1f74531ca5018b565eeddb.zip |
Replace list() with [] everywhere.
-rw-r--r-- | poezio/tabs/basetabs.py | 2 | ||||
-rw-r--r-- | poezio/windows/inputs.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py index 34945c27..3584b4dd 100644 --- a/poezio/tabs/basetabs.py +++ b/poezio/tabs/basetabs.py @@ -569,7 +569,7 @@ class ChatTab(Tab): """ # build the list of the recent words char_we_dont_want = string.punctuation + ' ’„“”…«»' - words = list() + words = [] for msg in self._text_buffer.messages[:-40:-1]: if not msg: continue diff --git a/poezio/windows/inputs.py b/poezio/windows/inputs.py index 6453205c..a0f97918 100644 --- a/poezio/windows/inputs.py +++ b/poezio/windows/inputs.py @@ -583,7 +583,7 @@ class HistoryInput(Input): An input with colors and stuff, plus an history ^R allows to search inside the history (as in a shell) """ - history = list() + history = [] def __init__(self): Input.__init__(self) @@ -593,7 +593,7 @@ class HistoryInput(Input): self.key_func['^R'] = self.toggle_search self.search = False if config.get('separate_history'): - self.history = list() + self.history = [] def toggle_search(self): if self.help_message: @@ -669,7 +669,7 @@ class MessageInput(HistoryInput): Conversation, Muc and Private tabs Also letting the user enter colors or other text markups """ - history = list() # The history is common to all MessageInput + history = [] # The history is common to all MessageInput def __init__(self): HistoryInput.__init__(self) @@ -716,7 +716,7 @@ class CommandInput(HistoryInput): HelpMessage when a command is started The on_input callback """ - history = list() + history = [] def __init__(self, help_message, on_abort, on_success, on_input=None): HistoryInput.__init__(self) |