Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
main
pyicu
Commits
298ed74a
Commit
298ed74a
authored
Apr 08, 2021
by
Andi Vajda
Browse files
return None instead of False
parent
ea0bb171
Changes
1
Hide whitespace changes
Inline
Side-by-side
calendar.cpp
View file @
298ed74a
...
...
@@ -531,7 +531,7 @@ static PyObject *t_timezonerule_getFirstStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
break
;
case
2
:
...
...
@@ -543,7 +543,7 @@ static PyObject *t_timezonerule_getFirstStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
}
...
...
@@ -565,7 +565,7 @@ static PyObject *t_timezonerule_getFinalStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
break
;
case
2
:
...
...
@@ -577,7 +577,7 @@ static PyObject *t_timezonerule_getFinalStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
}
...
...
@@ -602,7 +602,7 @@ static PyObject *t_timezonerule_getNextStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
...
...
@@ -615,7 +615,7 @@ static PyObject *t_timezonerule_getNextStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
...
...
@@ -628,7 +628,7 @@ static PyObject *t_timezonerule_getNextStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
...
...
@@ -642,7 +642,7 @@ static PyObject *t_timezonerule_getNextStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
}
...
...
@@ -667,7 +667,7 @@ static PyObject *t_timezonerule_getPreviousStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
...
...
@@ -680,7 +680,7 @@ static PyObject *t_timezonerule_getPreviousStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
...
...
@@ -693,7 +693,7 @@ static PyObject *t_timezonerule_getPreviousStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
...
...
@@ -707,7 +707,7 @@ static PyObject *t_timezonerule_getPreviousStart(t_timezonerule *self,
if
(
result
)
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
}
...
...
@@ -751,7 +751,7 @@ static PyObject *t_annualtimezonerule_getStartInYear(t_annualtimezonerule *self,
if
(
self
->
object
->
getStartInYear
(
year
,
0
,
0
,
date
))
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
...
...
@@ -762,7 +762,7 @@ static PyObject *t_annualtimezonerule_getStartInYear(t_annualtimezonerule *self,
year
,
prevRawOffset
,
prevDSTSavings
,
date
))
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
}
...
...
@@ -805,7 +805,7 @@ static PyObject *t_timearraytimezonerule_getStartTimeAt(
if
(
self
->
object
->
getStartTimeAt
(
index
,
date
))
return
PyFloat_FromDouble
(
date
/
1000.0
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
return
PyErr_SetArgsError
((
PyObject
*
)
self
,
"getStartTimeAt"
,
arg
);
...
...
@@ -1285,7 +1285,7 @@ static PyObject *t_basictimezone_getNextTransition(t_basictimezone *self,
return
wrap_TimeZoneTransition
(
(
TimeZoneTransition
*
)
(
tzt
.
clone
()),
T_OWNED
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
...
...
@@ -1299,7 +1299,7 @@ static PyObject *t_basictimezone_getNextTransition(t_basictimezone *self,
return
wrap_TimeZoneTransition
(
(
TimeZoneTransition
*
)
(
tzt
.
clone
()),
T_OWNED
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
}
...
...
@@ -1324,7 +1324,7 @@ static PyObject *t_basictimezone_getPreviousTransition(t_basictimezone *self,
return
wrap_TimeZoneTransition
(
(
TimeZoneTransition
*
)
(
tzt
.
clone
()),
T_OWNED
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
...
...
@@ -1339,7 +1339,7 @@ static PyObject *t_basictimezone_getPreviousTransition(t_basictimezone *self,
return
wrap_TimeZoneTransition
(
(
TimeZoneTransition
*
)
(
tzt
.
clone
()),
T_OWNED
);
Py_RETURN_
FALS
E
;
Py_RETURN_
NON
E
;
}
break
;
}
...
...
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