fix for gihub issue #10

http://github.com/pwr/Solaar/issues/10
This commit is contained in:
Daniel Pavel 2013-01-07 20:14:31 +02:00
parent 1c6c8588d9
commit 738d43fd83
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ class NamedInts(object):
if not isinstance(n, str) and not isinstance(n, unicode):
raise TypeError("expected string, got " + type(n))
if n == n.upper():
n.lstrip('_')
n = n.lstrip('_')
return n.replace('__', '/').replace('_', ' ')
values = {k: NamedInt(v, _readable_name(k)) for (k, v) in kwargs.items()}