aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/canvasrenderingcontext2d.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-08-05 10:13:22 -0400
committerCorey Farwell <coreyf@rwell.org>2015-08-05 10:23:16 -0400
commit5eeb53413e077de78b92e06b75850b93d77790a4 (patch)
tree18fcd6b1438827a8ae6e23024670e43723197e7c /components/script/dom/canvasrenderingcontext2d.rs
parent11acfbc29fd3412c18b6bf62e51faef5c2435fd3 (diff)
downloadservo-5eeb53413e077de78b92e06b75850b93d77790a4.tar.gz
servo-5eeb53413e077de78b92e06b75850b93d77790a4.zip
Prevent flake8 from crashing tidy
If someone were to write: def hello() : print "hello world" flake8 would warn: stdin:54:45: E203 whitespace before ':' Normally there are only three colons in a flake8 error message, but this one has four, which causes issue with this line: _, line_num, _, message = error.split(":") ...causing this error: ValueError: too many values to unpack This commit updates the `str.split` call to utilize the `maxsplit` parameter to prevent this error from occurring.
Diffstat (limited to 'components/script/dom/canvasrenderingcontext2d.rs')
0 files changed, 0 insertions, 0 deletions