Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Benjamin Jakimow
EO Time Series Viewer
Commits
6a702179
Commit
6a702179
authored
Mar 06, 2012
by
Luke Campagnola
Browse files
exception message fix
parent
e263baa0
Changes
1
Show whitespace changes
Inline
Side-by-side
Point.py
View file @
6a702179
...
@@ -46,7 +46,7 @@ class Point(QtCore.QPointF):
...
@@ -46,7 +46,7 @@ class Point(QtCore.QPointF):
elif
i
==
1
:
elif
i
==
1
:
return
self
.
y
()
return
self
.
y
()
else
:
else
:
raise
IndexError
(
"Point has no index %
d
"
%
i
)
raise
IndexError
(
"Point has no index %
s
"
%
str
(
i
)
)
def
__setitem__
(
self
,
i
,
x
):
def
__setitem__
(
self
,
i
,
x
):
if
i
==
0
:
if
i
==
0
:
...
@@ -54,7 +54,7 @@ class Point(QtCore.QPointF):
...
@@ -54,7 +54,7 @@ class Point(QtCore.QPointF):
elif
i
==
1
:
elif
i
==
1
:
return
self
.
setY
(
x
)
return
self
.
setY
(
x
)
else
:
else
:
raise
IndexError
(
"Point has no index %
d
"
%
i
)
raise
IndexError
(
"Point has no index %
s
"
%
str
(
i
)
)
def
__radd__
(
self
,
a
):
def
__radd__
(
self
,
a
):
return
self
.
_math_
(
'__radd__'
,
a
)
return
self
.
_math_
(
'__radd__'
,
a
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment