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

type usage is not recommended, use isinstance instead.

üst 4802331a
......@@ -59,7 +59,7 @@ class XorgEntry:
def entryFormat(values):
s = ""
for v in values:
if type(v) in (str, unicode, dbus.types.String):
if isinstance(v, (str, unicode, dbus.types.String)):
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