Skip to content

Commit 4102c9a

Browse files
author
Sameera
committed
correction for python 3.3 and below
1 parent ee0d6dc commit 4102c9a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/future/builtins/misc.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,6 @@ def pow(x, y, z=_SENTINEL):
100100
__all__ = ['ascii', 'chr', 'hex', 'input', 'isinstance', 'next', 'oct',
101101
'open', 'pow', 'round', 'super', 'max', 'min']
102102

103-
elif not utils.PY34_PLUS:
104-
from future.builtins.new_min_max import newmax as max
105-
from future.builtins.new_min_max import newmin as min
106-
__all__ = ['min', 'max']
107-
108103
else:
109104
import builtins
110105
ascii = builtins.ascii
@@ -119,10 +114,14 @@ def pow(x, y, z=_SENTINEL):
119114
pow = builtins.pow
120115
round = builtins.round
121116
super = builtins.super
122-
max = builtins.max
123-
min = builtins.min
124-
125-
__all__ = []
117+
if utils.PY34_PLUS:
118+
max = builtins.max
119+
min = builtins.min
120+
__all__ = []
121+
else:
122+
from future.builtins.new_min_max import newmax as max
123+
from future.builtins.new_min_max import newmin as min
124+
__all__ = ['min', 'max']
126125

127126
# The callable() function was removed from Py3.0 and 3.1 and
128127
# reintroduced into Py3.2+. ``future`` doesn't support Py3.0/3.1. If we ever

0 commit comments

Comments
 (0)