Define raw_input() in Python 3
__raw_input()__ was removed in Python 3 in favor of a reworked version of __input()__. This change ensures equivalent functionality in both Python 2 and Python 3.pull/99/head
parent
ec38172b3d
commit
342bebc733
|
@ -4,6 +4,11 @@ from PIL import Image
|
|||
from config.ticketConf import _get_yaml
|
||||
from damatuCode.ruokuai import RClient
|
||||
|
||||
try:
|
||||
raw_input # Python 2
|
||||
excpet NameError: # Python 3
|
||||
raw_input = input
|
||||
|
||||
|
||||
def getRandCode(is_auto_code, auto_code_type, result):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue