comparison Resources/GenerateErrorCodes.py @ 1582:bd1889029cbb

encoding of exceptions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 25 Aug 2015 17:39:38 +0200
parents bf502300c52e
children 9a3e03d6a4d5
comparison
equal deleted inserted replaced
1581:357c4bb15701 1582:bd1889029cbb
41 ## 41 ##
42 ## Read all the available error codes and HTTP status 42 ## Read all the available error codes and HTTP status
43 ## 43 ##
44 44
45 with open(os.path.join(BASE, 'Resources', 'ErrorCodes.json'), 'r') as f: 45 with open(os.path.join(BASE, 'Resources', 'ErrorCodes.json'), 'r') as f:
46 ERRORS = json.loads(f.read()) 46 ERRORS = json.loads(re.sub('/\*.*?\*/', '', f.read()))
47 47
48 with open(os.path.join(BASE, 'Core', 'Enumerations.h'), 'r') as f: 48 with open(os.path.join(BASE, 'Core', 'Enumerations.h'), 'r') as f:
49 a = f.read() 49 a = f.read()
50 50
51 HTTP = {} 51 HTTP = {}