pybank r66 - in trunk: . bank
- From: johan svn gnome org
- To: svn-commits-list gnome org
- Subject: pybank r66 - in trunk: . bank
- Date: Thu, 21 Aug 2008 06:51:42 +0000 (UTC)
Author: johan
Date: Thu Aug 21 06:51:42 2008
New Revision: 66
URL: http://svn.gnome.org/viewvc/pybank?rev=66&view=rev
Log:
2008-08-21 Johan Dahlin <johan gnome org>
* bank/module.py:
Upper case enum names
Modified:
trunk/ChangeLog
trunk/bank/module.py
Modified: trunk/bank/module.py
==============================================================================
--- trunk/bank/module.py (original)
+++ trunk/bank/module.py Thu Aug 21 06:51:42 2008
@@ -119,7 +119,7 @@
ns = dict(__name__=enum_info.getName(),
__module__=enum_info.getNamespace())
for value in enum_info.getValues():
- ns[value.getName()] = value.getValue()
+ ns[value.getName().upper()] = value.getValue()
return type(enum_info.getName(), (GEnum,), ns)
def _create_function(self, function_info):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]