[turbine] Allow numbers in package and class names



commit 93fd48e33c89509209f8f31f6e55f3259de2cad8
Author: Damien Lespiau <damien lespiau intel com>
Date:   Sun Mar 28 18:16:09 2010 +0100

    Allow numbers in package and class names
    
    If you are writing a library called, say Gb2 and your objects are things
    such as Gb2Word or Gb2Shape, you still want to use turbine!
    
    Teach turbine to accept numbers in package/class names and make the
    world a better place to live in.

 src/turbine/__init__.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/turbine/__init__.py b/src/turbine/__init__.py
index 2d17ac9..b7c4a14 100755
--- a/src/turbine/__init__.py
+++ b/src/turbine/__init__.py
@@ -204,7 +204,7 @@ def handle_post(button, ui):
 def guess_class_params (entry, ui):
 
     text = entry.get_text()
-    m = re.findall ('[A-Z]+[a-z]*', text)
+    m = re.findall ('[A-Z]+[a-z0-9]*', text)
     if (m):
       s = m[0]
     else:



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