remove trailing spaces

This commit is contained in:
Joe Julian 2015-09-01 13:57:10 -07:00
parent c1c1266cc3
commit e154c7b16f

View file

@ -35,12 +35,12 @@ def _parse_localectl():
Get the 'System Locale' parameters from localectl
'''
ret = {}
bus = dbus.SystemBus()
localed = bus.get_object('org.freedesktop.locale1',
'/org/freedesktop/locale1')
properties = dbus.Interface(localed, 'org.freedesktop.DBus.Properties')
system_locale = properties.Get('org.freedesktop.locale1', 'Locale')
system_locale = properties.Get('org.freedesktop.locale1', 'Locale')
try:
key, val = re.match('^([A-Z_]+)=(.*)$', system_locale[0]).groups()