]> kaliko git repositories - mpd-sima.git/blobdiff - sima/plugins/core/uniq.py
Mainly use literal for list/dict and f-strings when possible
[mpd-sima.git] / sima / plugins / core / uniq.py
index 1ad50f7d889781afbf691dbb35f38a66b6ee79d0..a46d7fc7e736f79b3fb5888d8bb2e8eb890c9c4b 100644 (file)
@@ -70,7 +70,7 @@ class Uniq(Plugin):
             self.log.warning(' '.join(channels))
 
     def sub_chan(self):
-        self.chan = 'mpd_sima:{0}.{1}'.format(getfqdn(), getpid())
+        self.chan = f'mpd_sima:{getfqdn()}.{getpid()}'
         self.log.debug('Registering as %s', self.chan)
         try:
             self.player.subscribe(self.chan)