Commit graph

1011 commits

Author SHA1 Message Date
Philipp Hörist
f12dfb811d Fix trailing-whitespace pylint errors 2018-10-07 00:46:48 +02:00
Philipp Hörist
e842298724 Fix bad-whitespace pylint errors 2018-10-07 00:46:48 +02:00
Philipp Hörist
a65d88c1cd Fix multiple-statements pylint errors 2018-10-07 00:46:47 +02:00
Philipp Hörist
5d1de209a8 Fix singleton-comparison pylint errors 2018-10-07 00:46:47 +02:00
Philipp Hörist
dad5331bf2 Fix no-else-return pylint errors 2018-10-07 00:46:46 +02:00
Philipp Hörist
b9edcceb4c Fix redefined-argument-from-local pylint errors 2018-10-07 00:46:45 +02:00
Philipp Hörist
c5ca89558d keys() doesnt return list() in python3 2018-10-07 00:46:45 +02:00
Philipp Hörist
bc70b24d80 Fix trailing-comma-tuple pylint errors 2018-10-07 00:46:45 +02:00
Philipp Hörist
acb0bacc09 Fix simplifiable-if-statement pylint errors 2018-10-07 00:46:45 +02:00
Philipp Hörist
defe74cc06 Fix literal-comparison pylint errors 2018-10-07 00:46:45 +02:00
Philipp Hörist
4fb78dfbfa Use keys() iteration if we modify the dict 2018-10-07 00:46:44 +02:00
Philipp Hörist
c4bd6d6ab2 Fix consider-iterating-dictionary pylint errors 2018-10-07 00:46:44 +02:00
Philipp Hörist
407dc04b28 Fix pylint errors 2018-10-07 00:46:44 +02:00
Philipp Hörist
cebd83d436 Fix unused-variable pylint errors 2018-10-07 00:46:44 +02:00
Philipp Hörist
6305fc69b9 Fix logging-not-lazy pylint errors 2018-10-07 00:46:43 +02:00
Philipp Hörist
5ff08236bb Fix bare-except pylint errors 2018-10-07 00:46:42 +02:00
Philipp Hörist
1c7f347a08 Fix missing time attribute
This was removed by accident
2018-10-07 00:46:42 +02:00
Philipp Hörist
eb6f5761ec Fix redefined-outer-name pylint errors 2018-10-07 00:46:42 +02:00
Philipp Hörist
a6525e19a2 Fix superfluous-parens pylint errors 2018-10-07 00:46:41 +02:00
Philipp Hörist
54776f5877 Fix evaluation for subject change 2018-10-07 00:46:41 +02:00
Philipp Hörist
0b5c8a3b46 Dont retract pep items on UserXEPs
This leads to multiple problems

1. We cant assume only items with id='current' are stored in the node
which would lead to retracting 'current' but another item would become
the last published and sent to users

2. Even if we have a SingletonNode retracting the only item means the Node
would be empty and offline clients would not receive the last published item
on coming online, because there is no item anymore

Instead we always publish an empty item from now on
2018-10-07 00:46:41 +02:00
Philipp Hörist
f00d8087ad Fix sending empty pep data 2018-10-07 00:46:41 +02:00
Philipp Hörist
7cf53e901b Fix useless-object-inheritance pylint errors 2018-10-07 00:46:40 +02:00
Philipp Hörist
d011be2d89 Fix unsued-import pylint errors 2018-10-07 00:46:40 +02:00
Philipp Hörist
4cf7d20600 Fix len-as-condition pylint error 2018-10-07 00:46:40 +02:00
Philipp Hörist
a3c687dae1 Fix len-as-condition pylint errors 2018-10-07 00:46:39 +02:00
Philipp Hörist
e953820ff8 Zeroconf: Store time of outgoing messages 2018-10-07 00:46:39 +02:00
Philipp Hörist
e3be3af76e HistoryManager: Load css config in standalone 2018-10-07 00:46:39 +02:00
Philipp Hörist
77c9b3a98d Add annotations and fix pylint/mypy errors 2018-10-07 00:46:38 +02:00
Philipp Hörist
226c42a92a Add stubs file for emoji_data
Otherwise mypy hangs because the file is to big
2018-10-07 00:46:38 +02:00
Philipp Hörist
9bfa2d9258 fuzzyclock: Fix pylint errors 2018-10-07 00:46:38 +02:00
Philipp Hörist
6ba984d540 Add annotations 2018-10-07 00:46:38 +02:00
Philipp Hörist
16d0780d92 Fix pylint errors 2018-10-07 00:46:38 +02:00
Philipp Hörist
6753c3e499 Fix pylint errors 2018-10-07 00:46:37 +02:00
Philipp Hörist
58ad5cd4d5 Fix pylint errors in common/modules 2018-10-07 00:46:37 +02:00
Philipp Hörist
6abb9c626b Make some vars private 2018-10-07 00:46:37 +02:00
Philipp Hörist
375af2a3d9 Catch error if no translation is found 2018-10-07 00:46:37 +02:00
Philipp Hörist
8d896449c7 Fix mypy error regarding _() 2018-10-07 00:46:37 +02:00
Philipp Hörist
1b75403754 Refactor i18n
- Make _() available, so other modules can import it from i18n, we need
this because mypy cant handle _() in the builtins namespace
2018-10-07 00:46:36 +02:00
Philipp Hörist
f5cef34910 Add annotations to modules/util.py 2018-10-07 00:46:36 +02:00
Philipp Hörist
9a778541b5 Add annotations for modules/__init__.py 2018-10-07 00:46:36 +02:00
Philipp Hörist
df9651f33b Remove unnecessary code
NetworkIncomingEvent defines base_network_events and generate() already
2018-10-07 00:46:36 +02:00
Philipp Hörist
06c66aaff1 Add debug output for NetworkMonitor 2018-10-07 00:46:36 +02:00
Philipp Hörist
648ac9fe89 Fix subscribing to contact
Fixes #9321
2018-10-07 00:46:36 +02:00
Philipp Hörist
950130528d Request blocking list on connect 2018-10-07 00:46:36 +02:00
Philipp Hörist
204b673e86 Add Builder class 2018-10-07 00:46:36 +02:00
Philipp Hörist
9bd9bef3c3 Fix fallback for bookmark name 2018-10-07 00:46:36 +02:00
Philipp Hörist
069c0263e1 Improve speed of groupchat roster
- Save reference to contact in a dict instead of iterating the whole model
- Sort roster only once after all contacts have been added to the roster
- Speed up get_gc_contact()

Fixes #9334
2018-10-07 00:46:36 +02:00
Philipp Hörist
16712645a2 Windows: Fix translation
Fixes #9324
2018-10-07 00:46:35 +02:00
Philipp Hörist
ba8d20ab78 Remove verbose logging of idle time 2018-10-07 00:46:35 +02:00