Example #1
0
 def _convertLineToProperFormat(self, rawDataLine, finalFile):
     try:
         foundGroups = re.search('"([A-Za-z\.\s\^/]+)"', rawDataLine)
         stockName = foundGroups.group(0)[1:-1].strip()
         if StringUtil.stringIsOnlyChars(stockName):
             finalFile.write(stockName + "\n")
     except AttributeError: logging.warn("Couldn't find a stock name in line: "+rawDataLine)