Kaydet (Commit) a6a59120 authored tarafından Fatih Aşıcı's avatar Fatih Aşıcı

basestring is enough instead of (str, unicode, dbus.types.String)

üst bec3ae93
# -*- coding: utf-8 -*-
import dbus.types
trueList = ("1", "on", "true", "yes", "enable")
falseList = ("0", "off", "false", "no", "disable")
......@@ -59,7 +57,7 @@ class XorgEntry:
def entryFormat(values):
s = ""
for v in values:
if isinstance(v, (str, unicode, dbus.types.String)):
if isinstance(v, basestring):
s += ' "%s"' % v
else:
s += " %s" % v
......
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