Merge pull request #99 from cclauss/patch-2

Define raw_input() in Python 3
pull/108/head
wenxianping 2019-01-07 22:34:07 +08:00 committed by GitHub
commit 34789a5a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,11 @@ from PIL import Image
from config.ticketConf import _get_yaml
from damatuCode.ruokuai import RClient
try:
raw_input # Python 2
except NameError: # Python 3
raw_input = input
def getRandCode(is_auto_code, auto_code_type, result):
"""