aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/pyme/util.py
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-07-28 13:44:38 +0000
committerJustus Winter <[email protected]>2016-07-28 14:49:50 +0000
commit2f754440f28e8f81babdf7efa6186edbc8ad99fd (patch)
tree28ba42ca510bfd662dbf5a5eda5a5bf981fa122d /lang/python/pyme/util.py
parentpython: Rename exported functions. (diff)
downloadgpgme-2f754440f28e8f81babdf7efa6186edbc8ad99fd.tar.gz
gpgme-2f754440f28e8f81babdf7efa6186edbc8ad99fd.zip
python: Rename compiled SWIG module.
Avoid the name pygpgme, as this is the name of another popular Python binding for GPGME. This commit renames the compiled Python module produced by SWIG. * lang/python/Makefile.am: Rename the compiled Python module. * lang/python/gpgme.i: Likewise. * lang/python/pyme/core.py: Likewise. * lang/python/pyme/errors.py: Likewise. * lang/python/pyme/util.py: Likewise. * lang/python/pyme/version.py.in: Likewise. * lang/python/setup.py.in: Likewise. Signed-off-by: Justus Winter <[email protected]>
Diffstat (limited to '')
-rw-r--r--lang/python/pyme/util.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/python/pyme/util.py b/lang/python/pyme/util.py
index 7eb6353f..ef0bd65a 100644
--- a/lang/python/pyme/util.py
+++ b/lang/python/pyme/util.py
@@ -16,7 +16,7 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-from . import pygpgme
+from . import gpgme
def process_constants(prefix, scope):
"""Called by the constant modules to load up the constants from the C
@@ -26,8 +26,8 @@ def process_constants(prefix, scope):
"""
index = len(prefix)
- constants = {identifier[index:]: getattr(pygpgme, identifier)
- for identifier in dir(pygpgme)
+ constants = {identifier[index:]: getattr(gpgme, identifier)
+ for identifier in dir(gpgme)
if identifier.startswith(prefix)}
scope.update(constants)
return list(constants.keys())