Skip to content

Commit 1c06805

Browse files
committed
2 parents 5380e25 + 60c72c5 commit 1c06805

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

future/standard_library/misc.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""
2+
Miscellaneous function (re)definitions from the Py3.3 standard library for
3+
Python 2.6/2.7.
4+
"""
5+
from math import ceil as oldceil
6+
7+
def ceil(x):
8+
"""
9+
Return the ceiling of x as an int.
10+
This is the smallest integral value >= x.
11+
"""
12+
return int(oldceil(x))

0 commit comments

Comments
 (0)