Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/models/c_extension/python_wrapper/WrapperGenerator.py

    r1f5f206 r13e46abe  
    560560    def replaceToken(self, line, key, value): #pylint: disable-msg=R0201 
    561561        """ Replace a token in the template file  
    562             :param line: line of text to inspect 
    563             :param key: token to look for 
    564             :param value: string value to replace the token with 
    565             :return: new string value 
     562            @param line: line of text to inspect 
     563            @param key: token to look for 
     564            @param value: string value to replace the token with 
     565            @return: new string value 
    566566        """ 
    567         _str_value = str(value) 
    568         _new_value = _str_value.replace('\\','/') 
    569567        lenkey = len(key) 
    570568        newline = line 
     
    572570        while newline.count(key) > 0: 
    573571            index = newline.index(key) 
    574             newline = newline[:index] + _new_value + newline[index + lenkey:] 
     572            newline = newline[:index] + value + newline[index + lenkey:] 
    575573 
    576574        return newline 
Note: See TracChangeset for help on using the changeset viewer.