aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/codegen/GenerateCSS2PropertiesWebIDL.py
Commit message (Collapse)AuthorAgeFilesLines
* Don't use `is` operatory to compare Python stringsCorey Farwell2015-08-221-1/+1
| | | | | | | | | | `is` checks identity. `==` checks value. I can't think of a reason why we would want the former in these scenarios. More info: * http://stackoverflow.com/a/1504742 * https://docs.python.org/2/reference/expressions.html#is
* Utilize Python context managers for opening/closing filesCorey Farwell2015-08-211-3/+2
| | | | In some of these cases, files were not being closed
* Remove tidy blacklist for 'script/dom/bindings/*'Corey Farwell2015-07-091-6/+6
| | | | | | | | | | | | | | | | | | | | | Recently, I found myself reading through the Python codegen scripts that live in 'components/script/dom/bindings/*' and noticed that there were many tidy violations: unnecessary semicolons, weird spacing, unused variables, lack of license headers, etc. Considering these files are now living in our tree and mostly maintained directly by contributors of Servo (as opposed to being from upstream), I feel these files should not be excluded from our normal tidy process. This commit removes the blacklist on these files and fixes all tidy violations. I added these subdirectories to the blacklist because they appear to be maintained upstream somewhere else: * "components/script/dom/bindings/codegen/parser/*", * "components/script/dom/bindings/codegen/ply/*", Also, I added a '# noqa' comment which tells us to ignore the flake8 errors for that line. I chose to ignore this (instead of fixing it) to make the work for this commit simpler for me.
* Cargoify servoJack Moffitt2014-09-081-0/+26