Skip to content

Commit f00b315

Browse files
committed
more python2 -> python3
1 parent 9491472 commit f00b315

File tree

2 files changed

+166
-231
lines changed

2 files changed

+166
-231
lines changed

date_utils/calendar_util.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# The essential reference for computational positional astronomy.
1313
#
1414

15-
from .astro import *
15+
from astro import *
1616

1717

1818
J0000 = 1721424.5 # Julian date of Gregorian epoch: 0000-01-01
@@ -111,6 +111,10 @@
111111
)
112112

113113

114+
def apply(func, args, kwargs=None):
115+
return func(*args) if kwargs is None else func(*args, **kwargs)
116+
117+
114118
def leap_gregorian(year):
115119
return year % 4 == 0 and not ((year % 100) == 0 and (year % 400) != 0)
116120

0 commit comments

Comments
 (0)