Define xrange() in Python 3

__xrange()__ was removed in Python 3 in favor of a reworked version of __range()__.  This change ensures equivalent functionality in both Python 2 and Python 3.
pull/100/head
cclauss 6 years ago committed by GitHub
parent ec38172b3d
commit 252ca4002c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,6 +3,11 @@ from config.TicketEnmu import ticket
from myException.PassengerUserException import PassengerUserException
import wrapcache
try:
xrange # Python 2
except NameError:
xrange = range # Python 3
class getPassengerDTOs:
"""

Loading…
Cancel
Save