commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5662 - trunk/gnue-common/src/logic/adapters


From: reinhard
Subject: r5662 - trunk/gnue-common/src/logic/adapters
Date: Wed, 7 Apr 2004 04:21:59 -0500 (CDT)

Author: reinhard
Date: 2004-04-07 04:21:58 -0500 (Wed, 07 Apr 2004)
New Revision: 5662

Modified:
   trunk/gnue-common/src/logic/adapters/python.py
Log:
Make sure that there is always a function name.


Modified: trunk/gnue-common/src/logic/adapters/python.py
===================================================================
--- trunk/gnue-common/src/logic/adapters/python.py      2004-04-07 08:43:14 UTC 
(rev 5661)
+++ trunk/gnue-common/src/logic/adapters/python.py      2004-04-07 09:21:58 UTC 
(rev 5662)
@@ -138,6 +138,8 @@
     """
     # The function name may only contain ascii characters and underscores.
     self.funcName = self.__identifier (self._name)
+    if not self.funcName:
+      self.funcName = 'unnamed'
 
     paramlist = string.join (['__namespace'] + \
            [self.__identifier (key) for key in self._parameters.keys ()], ", ")





reply via email to

[Prev in Thread] Current Thread [Next in Thread]