Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

converted assert into exception#3060

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 36 commits intomatplotlib:masterfrommontefra:no_assert
Mar 22, 2015
Merged
Changes from1 commit
Commits
Show all changes
36 commits
Select commitHold shift + click to select a range
873e91d
converted assert into exception
montefraMay 13, 2014
b297f41
Exception type modified according to @pelson comment
montefraMay 26, 2014
187f584
removed assert in `draw_artist` and `redraw_in_frame`
montefraMay 26, 2014
34c6a5f
most asserts modified to ValueError
montefraMay 26, 2014
0c1f9f7
All asserts substituted by ValueError
montefraMay 28, 2014
4cfa781
method name explicitly written in the message
montefraMay 28, 2014
aba9d99
Most asserts changed to ValueErrors. Two changed to warning
montefraMay 28, 2014
8fbb652
c* files done
montefraMay 30, 2014
5a45046
assert removed
montefraMay 30, 2014
33fdabe
Asserts removed. Side effect: function to check that the inputs have …
montefraMay 30, 2014
67bdfea
Asserts removed throughout the files m*
montefraJun 3, 2014
531004c
Asserts removed throughout the files r*
montefraJun 3, 2014
eaca138
SyntaxError from Travis corrected
montefraJun 3, 2014
9e4b911
assert removed from files s*
montefraJun 3, 2014
d12fbb8
asserts removed from t* file. test and tri directories ignored
montefraJun 4, 2014
7f80628
asserts removed from [u-z]* files
montefraJun 4, 2014
4fc36c6
the only assert in a python public function removed
montefraJun 4, 2014
617b622
Bug introduced while getting rid of the asserts fixed
montefraJun 18, 2014
2cbb326
typo fixed (broke building documentation)
montefraMar 5, 2015
20966e9
pep8 fixed. plot_day_summary2 removed (retained by error when rebasing)
montefraMar 5, 2015
96c733e
PEP8 fixed
montefraMar 5, 2015
140210f
PEP8 fixed - image.py
montefraMar 5, 2015
a2abc7b
PEP 8 fixed - mlab.py
montefraMar 5, 2015
25cec22
PEP 8 fixed - patches.py
montefraMar 5, 2015
06aedf7
PEP8 fixed - path.py
montefraMar 5, 2015
77da3b6
PEP8 fixed - sankey.py
montefraMar 5, 2015
95ae2cd
PEP8 fixed - spines.py, table.py
montefraMar 5, 2015
b167c0c
test adapted to code change (AssertionError -> ValueError)
montefraMar 5, 2015
f9792a9
fixed according to #3060 comment
montefraMar 5, 2015
850178e
Two bugs in assert -> exception transformation fixed
montefraMar 5, 2015
c0ebd4f
Typo fixed
montefraMar 5, 2015
6b6d2de
Bug in assert -> exception transformation fixed
montefraMar 5, 2015
088542e
Typo fixed
montefraMar 5, 2015
41bf6b5
Modified according to @tacaswell comments
montefraMar 16, 2015
7ea5c1a
fixed pep8 Travis failure
montefraMar 16, 2015
d6c3c32
python2.6 string formatting. style more uniform
montefraMar 22, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Typo fixed
  • Loading branch information
@montefra
montefra committedMar 5, 2015
commitc0ebd4ff8b34da3d42b9ce2c8b5bf9bc8e0af82b
2 changes: 1 addition & 1 deletionlib/matplotlib/patches.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3096,7 +3096,7 @@ def ensure_quadratic_bezier(path):
segments = list(path.iter_segments())
if (len(segments) != 2) or (segments[0][1] != Path.MOVETO) or\
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

remove the\.

(segments[1][1] != Path.CURVE3):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Aligning with the inner block is a greater style issue that over indenting, can you push this in a few more spaces?

msg = "'path' it's not a validquadratice bezier curve"
msg = "'path' it's not a validquadratic bezier curve"
raise ValueError(msg)

return list(segments[0][0]) + list(segments[1][0])
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp