Browse Source

No need to manually encode output for Python 3

tags/nilmtools-2.0.0
Jim Paris 1 year ago
parent
commit
453c015f5e
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      nilmtools/filter.py

+ 0
- 4
nilmtools/filter.py View File

@@ -329,10 +329,6 @@ class Filter(object):
if not isinstance(wanted, str):
wanted = str(wanted)
val = metadata.get(key, wanted)
# Force UTF-8 encoding for comparison and display
wanted = wanted.encode('utf-8')
val = val.encode('utf-8')
key = key.encode('utf-8')
if val != wanted and self.dest.rows > 0:
m = "Metadata in destination stream:\n"
m += " %s = %s\n" % (key, val)


Loading…
Cancel
Save