diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:41:54 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:41:58 +0900 |
commit | 4bfc3de521c8d93613e5153028da35406609a64f (patch) | |
tree | 98175ed0ab42bc56bec3d45d69364a988a00de1f /gi/overrides/Gio.py | |
parent | 5a89ec21697bd9e08c9102b2a7b6c60b4652e66c (diff) | |
download | pygobject2-4bfc3de521c8d93613e5153028da35406609a64f.tar.gz pygobject2-4bfc3de521c8d93613e5153028da35406609a64f.tar.bz2 pygobject2-4bfc3de521c8d93613e5153028da35406609a64f.zip |
Imported Upstream version 3.13.2
Change-Id: Icce9be2c1bf0568fc95f75ff0a714c017e6171ec
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'gi/overrides/Gio.py')
-rw-r--r-- | gi/overrides/Gio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gi/overrides/Gio.py b/gi/overrides/Gio.py index 5a5dd2f..e646821 100644 --- a/gi/overrides/Gio.py +++ b/gi/overrides/Gio.py @@ -82,14 +82,14 @@ class Settings(Gio.Settings): def __getitem__(self, key): # get_value() aborts the program on an unknown key - if not key in self: + if key not in self: raise KeyError('unknown key: %r' % (key,)) return self.get_value(key).unpack() def __setitem__(self, key, value): # set_value() aborts the program on an unknown key - if not key in self: + if key not in self: raise KeyError('unknown key: %r' % (key,)) # determine type string of this key |