diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-08-06 02:32:43 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-08-06 02:32:43 -0600 |
commit | 729e003c5d954694e3fa6fd2b72702515ef94c6c (patch) | |
tree | 2ce3b501fb6c41e9838f4dc581c797e0639fe698 /components/script/dom/canvasrenderingcontext2d.rs | |
parent | 3b4b59551d9e2ba2501f4d991fadeb0215a323a7 (diff) | |
parent | 5eeb53413e077de78b92e06b75850b93d77790a4 (diff) | |
download | servo-729e003c5d954694e3fa6fd2b72702515ef94c6c.tar.gz servo-729e003c5d954694e3fa6fd2b72702515ef94c6c.zip |
Auto merge of #6996 - frewsxcv:prevent-tidy-crash, r=jdm
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.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6996)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/canvasrenderingcontext2d.rs')
0 files changed, 0 insertions, 0 deletions