Replace assignment with augmented assignment

pull/989/head
Alessio Sergi 2016-12-22 15:58:01 +01:00
parent 6fb03571f1
commit 9f36d12693
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class Plugin(GlancesPlugin):
hotspotname = i['ssid']
# Add the encryption type (if it is available)
if i['encrypted']:
hotspotname = hotspotname + ' {}'.format(i['encryption_type'])
hotspotname += ' {}'.format(i['encryption_type'])
# Cut hotspotname if it is too long
if len(hotspotname) > ifname_max_width:
hotspotname = '_' + hotspotname[-ifname_max_width + 1:]