Fix EOL problem with Python scripts
authorFrank Livingston <frank-livingston@ti.com>
Fri, 26 Aug 2016 16:23:48 +0000 (11:23 -0500)
committerFrank Livingston <frank-livingston@ti.com>
Fri, 26 Aug 2016 16:23:48 +0000 (11:23 -0500)
processor_audio_sdk_1_00_00_00/tools/pyalpha/pyalpha/pyalpha.py

index 16627df48442114e9976db6211f610ec22a579b4..efae39ef7cbb22637ff7443ed5dd6d0b6024e96d 100644 (file)
@@ -259,7 +259,7 @@ class PyAlpha:
         #      # define alphaCommandName 0x####,0x####,...
         define_str = r"^#define"
         alpha_str  = r"(?P<alpha>\S+)"
-        hex_str    = r"(?P<hex>(0x[a-f0-9]{4},?)+)\n$"
+        hex_str    = r"(?P<hex>(0x[a-f0-9]{4},?)+)[\r\n]+$"
 
         # Compile the regular expression
         alpha_re = re.compile(define_str + " " +