diff options
author | Nicolas Hennion <nicolas@nicolargo.com> | 2012-12-18 22:24:26 +0100 |
---|---|---|
committer | Nicolas Hennion <nicolas@nicolargo.com> | 2012-12-18 22:24:26 +0100 |
commit | a17f68c1b4b073432ddef67c7c3307bce0a044ef (patch) | |
tree | cd81a2f26e15fc7605e3cfb57a57d533c4007ff9 | |
parent | c98b364d3c7b0552f14f63f56275574d9b2edd49 (diff) |
Add ascii encoding on network interface name
-rwxr-xr-x | glances/glances.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glances/glances.py b/glances/glances.py index 94c4c062..17e455b3 100755 --- a/glances/glances.py +++ b/glances/glances.py @@ -1821,7 +1821,7 @@ class glancesScreen: # network interface name self.term_window.addnstr( self.network_y + 1 + i, self.network_x, - unicode(network[i]['interface_name'], 'ascii', 'ignore') + ':', 8) + network[i]['interface_name'].encode('ascii', 'ignore') + ':', 8) # Byte/s or bit/s if self.net_byteps_tag: |