Changeset 162250 in webkit
- Timestamp:
- Jan 18, 2014 1:04:36 AM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r162209 r162250 1 2014-01-18 Zan Dobersek <zdobersek@igalia.com> 2 3 Inspector scripts are not compatible with Python v3 4 https://bugs.webkit.org/show_bug.cgi?id=127128 5 6 Reviewed by Benjamin Poulain. 7 8 * inspector/scripts/generate-combined-inspector-json.py: Turn print statements into print function calls. 9 * inspector/scripts/jsmin.py: Try importing the StringIO class from the StringIO module (which will work for 10 Python v2) or, on import error, import the class from the io module (which will work for Python v3). 11 1 12 2014-01-17 Anders Carlsson <andersca@apple.com> 2 13 -
trunk/Source/JavaScriptCore/inspector/scripts/generate-combined-inspector-json.py
r160557 r162250 30 30 31 31 if len(sys.argv) < 2: 32 print "usage: %s [json files or directory of json files ...]" % os.path.basename(sys.argv[0])32 print("usage: %s [json files or directory of json files ...]" % os.path.basename(sys.argv[0])) 33 33 sys.exit(1) 34 34 … … 48 48 49 49 first = True 50 print "{\"domains\":["50 print("{\"domains\":[") 51 51 for file in files: 52 52 if first: 53 53 first = False 54 54 else: 55 print ","55 print(",") 56 56 57 57 string = open(file).read() … … 65 65 raise 66 66 67 print string.rstrip()68 print "]}"67 print(string.rstrip()) 68 print("]}") -
trunk/Source/JavaScriptCore/inspector/scripts/jsmin.py
r161563 r162250 31 31 # */ 32 32 33 from StringIO import StringIO 33 # Import StringIO from either the StringIO module (Python 2.x) or the io module (Python 3.x). 34 try: 35 from StringIO import StringIO 36 except ImportError: 37 from io import StringIO 34 38 35 39 def jsmin(js):
Note: See TracChangeset
for help on using the changeset viewer.