
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


from __future__ import absolute_import

# Use Python 2 input unless raw_input doesn't exist
try:
    INPUT = raw_input
except NameError:
    INPUT = input

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

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

  
  from __future__ import absolute_import
  
- # Use Python 3 input if possible
+ # Use Python 2 input unless raw_input doesn't exist
  try:
+     INPUT = raw_input
+ except NameError:
      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
  
Use raw_input [py2] first, then resort to input [py3].
## Code Before:

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

## Instruction:
Use raw_input [py2] first, then resort to input [py3].
## Code After:

from __future__ import absolute_import

# Use Python 2 input unless raw_input doesn't exist
try:
    INPUT = raw_input
except NameError:
    INPUT = input

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