Commit f2d6dd3c authored by Guillaume Seguin's avatar Guillaume Seguin

Add helper to decode utf8 strings

parent 93eb6a44
......@@ -70,6 +70,13 @@ def sharedfile(filename):
def configfile(filename):
return lookup_file(filename, [os.path.expanduser("~/.printrun/"), ])
def decode_utf8(s):
try:
s = s.decode("utf-8")
except:
pass
return s
class RemainingTimeEstimator(object):
drift = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment