Changeset 147934 in webkit


Ignore:
Timestamp:
Apr 8, 2013 10:51:01 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Allow KeywordLookupGenerator.py to work on Windows with Windows style line endings
https://bugs.webkit.org/show_bug.cgi?id=63234

Patch by Justin Haygood <jhaygood@reaktix.com> on 2013-04-08
Reviewed by Oliver Hunt.

  • KeywordLookupGenerator.py:

(parseKeywords):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r147933 r147934  
     12013-04-08  Justin Haygood  <jhaygood@reaktix.com>
     2
     3        Allow KeywordLookupGenerator.py to work on Windows with Windows style line endings
     4        https://bugs.webkit.org/show_bug.cgi?id=63234
     5
     6        Reviewed by Oliver Hunt.
     7
     8        * KeywordLookupGenerator.py:
     9        (parseKeywords):
     10
    1112013-04-08  Filip Pizlo  <fpizlo@apple.com>
    212
  • trunk/Source/JavaScriptCore/KeywordLookupGenerator.py

    r114684 r147934  
    6969
    7070def parseKeywords(keywordsText):
     71
     72    if sys.platform == "cygwin":
     73        keywordsText = keywordsText.replace("\r\n", "\n")
     74
    7175    lines = keywordsText.split("\n")
    7276    lines = [line.split("#")[0] for line in lines]
     
    7478    name = lines[0].split()
    7579    terminator = lines[-1]
     80
    7681    if not name[0] == "@begin":
    7782        raise Exception("expected description beginning with @begin")
Note: See TracChangeset for help on using the changeset viewer.