subuser-security / subuser

Run programs on linux with selectively restricted permissions.
http://subuser.org
GNU Lesser General Public License v3.0
889 stars 65 forks source link

Python 3 support : in Python 3, "raw_input" is now "input" #230

Closed 104player closed 9 years ago

104player commented 9 years ago

The code now tries to get "raw_input" (if successful (Python 2), it will write over "input" which was insecure anyways). If it fails (in Python 3), it will make Python 3's "input" available as "raw_input".

So this should work in both Python 2 and 3.

timthelion commented 9 years ago

Thanks for the pull request! Looks fine. Merged. :)