You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by ch...@apache.org on 2013/12/06 15:50:33 UTC

svn commit: r1548544 - /uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_base.py

Author: challngr
Date: Fri Dec  6 14:50:33 2013
New Revision: 1548544

URL: http://svn.apache.org/r1548544
Log:
UIMA-3473 trim properties

Modified:
    uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_base.py

Modified: uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_base.py
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_base.py?rev=1548544&r1=1548543&r2=1548544&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_base.py (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/scripts/ducc_base.py Fri Dec  6 14:50:33 2013
@@ -44,12 +44,11 @@ class DuccProperties:
     #    1 look in this properties file
     #    2 look in the environment
     #
-    def do_subst(self, str):
+    def do_subst(self, st):
         key = None
         p = re.compile("\\$\\{[a-zA-Z0-9_\\.\\-]+\\}")
         ndx = 0
-        
-        response = str
+        response = st.strip()
         m = p.search(response, ndx)    
         while ( m != None ):
             key = m.group()[2:-1]