]> jfr.im git - irc/weechat/qweechat.git/commitdiff
Rename variable _PROTO_SYNC to _PROTO_SYNC_CMDS
authorSébastien Helleu <redacted>
Sun, 14 Nov 2021 17:56:48 +0000 (18:56 +0100)
committerSébastien Helleu <redacted>
Sun, 14 Nov 2021 17:56:48 +0000 (18:56 +0100)
qweechat/network.py

index e865702a57c708935dfc3e625fff97f8b8815d9c..f665c2218bd7c21cd30172971e3645ec85c5be6f 100644 (file)
@@ -53,7 +53,7 @@ _PROTO_INIT_PWD = 'init password=%(password)s%(totp)s\n'
 _PROTO_INIT_HASH = ('init password_hash='
                     '%(algo)s:%(salt)s%(iter)s:%(hash)s%(totp)s\n')
 
-_PROTO_SYNC = [
+_PROTO_SYNC_CMDS = [
     # get buffers
     '(listbuffers) hdata buffer:gui_buffers(*) number,full_name,short_name,'
     'type,nicklist,title,local_variables',
@@ -179,7 +179,7 @@ class Network(QtCore.QObject):
 
     def _build_sync_command(self):
         """Build the sync commands to send to WeeChat."""
-        cmd =  '\n'.join(_PROTO_SYNC) + '\n'
+        cmd = '\n'.join(_PROTO_SYNC_CMDS) + '\n'
         return cmd % {'lines': self._lines}
 
     def handshake_timer_expired(self):