comparison sat_frontends/tools/misc.py @ 2624:56f94936df1e

code style reformatting using black
author Goffi <goffi@goffi.org>
date Wed, 27 Jun 2018 20:14:46 +0200
parents b4ecbcc2fd08
children 559a625a236b
comparison
equal deleted inserted replaced
2623:49533de4540b 2624:56f94936df1e
17 # You should have received a copy of the GNU Affero General Public License 17 # You should have received a copy of the GNU Affero General Public License
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. 18 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 19
20 20
21 class InputHistory(object): 21 class InputHistory(object):
22
23 def _updateInputHistory(self, text=None, step=None, callback=None, mode=""): 22 def _updateInputHistory(self, text=None, step=None, callback=None, mode=""):
24 """Update the lists of previously sent messages. Several lists can be 23 """Update the lists of previously sent messages. Several lists can be
25 handled as they are stored in a dictionary, the argument "mode" being 24 handled as they are stored in a dictionary, the argument "mode" being
26 used as the entry key. There's also a temporary list to allow you play 25 used as the entry key. There's also a temporary list to allow you play
27 with previous entries before sending a new message. Parameters values 26 with previous entries before sending a new message. Parameters values
90 89
91 @property 90 @property
92 def unused(self): 91 def unused(self):
93 """Return flags which has not been used yet""" 92 """Return flags which has not been used yet"""
94 return self.flags.difference(self._used_flags) 93 return self.flags.difference(self._used_flags)
95