diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:36:00 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2017-07-12 08:36:01 +0900 |
commit | 385fb5df2f7c3ec197b954e8a8ddac5297fe4043 (patch) | |
tree | d84ecee10b56acc8ec2633a277fca9ce457013f1 /gi/__init__.py | |
parent | c79482ebfe55da780fd2d733696f5107dc4d5cb8 (diff) | |
download | pygobject2-385fb5df2f7c3ec197b954e8a8ddac5297fe4043.tar.gz pygobject2-385fb5df2f7c3ec197b954e8a8ddac5297fe4043.tar.bz2 pygobject2-385fb5df2f7c3ec197b954e8a8ddac5297fe4043.zip |
Imported Upstream version 2.28.0
Change-Id: If251721667bb545804ab96eb17bffb715cd4e832
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
Diffstat (limited to 'gi/__init__.py')
-rw-r--r-- | gi/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gi/__init__.py b/gi/__init__.py index ed20606..314d579 100644 --- a/gi/__init__.py +++ b/gi/__init__.py @@ -32,7 +32,8 @@ def require_version(namespace, version): repository = Repository.get_default() if namespace in repository.get_loaded_namespaces(): - if repository.get_version(namespace) != version: + loaded_version = repository.get_version(namespace) + if loaded_version != version: raise ValueError('Namespace %s is already loaded with version %s' % \ (namespace, loaded_version)) |