Github user meawoppl commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6336#discussion_r30908606
  
    --- Diff: ec2/spark_ec2.py ---
    @@ -47,6 +48,8 @@
     else:
         from urllib.request import urlopen, Request
         from urllib.error import HTTPError
    +    raw_input = input
    +    xrange = range
    --- End diff --
    
    2.6/2.7 behavior is unaffected, the if-block just above is a check on py 
version number.  
    
    In py3 xrange does not exist because range() is an iterator.  This is the 
approach that 
[six.py](https://code.google.com/p/googleappengine/source/browse/trunk/python/lib/django-1.5/django/utils/six.py?r=442#184)
 uses for porting.  
    
    Similarly the eval behavior of py2's input was dropped for obvious reasons, 
and raw_input was basically renamed.  Six also directly ports these names a 
couple lines above the other link.   


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to