#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
ext_pylib.input
~~~~~~~~~~~~~~~~

Functions for displaying and handling input on the terminal.
"""

from __future__ import absolute_import

# Use Python 3 input if possible
try:
    INPUT = input
except NameError:
    INPUT = raw_input

# pylint: disable=wrong-import-position
# this import MUST be after INPUT is defined
from .prompts import prompt, prompt_str, warn_prompt

@@ -201,27 +201,46 @@
 hon 
-3
+2
  input 
-if possible
+unless raw_input doesn't exist
 %0Atry
@@ -253,16 +253,20 @@
 INPUT = 
+raw_
 input%0Aex
@@ -289,28 +289,24 @@
     INPUT = 
-raw_
 input%0A%0A# pyl

Use raw_input [py2] first, then resort to input [py3].