From d0dc26caf7d0f664fc68c9422fd88a7b1385e251 Mon Sep 17 00:00:00 2001 From: rocky Date: Sat, 5 Jan 2019 16:48:55 -0500 Subject: [PATCH] Another test --- test/simple_source/bug36/03_if_try.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/simple_source/bug36/03_if_try.py diff --git a/test/simple_source/bug36/03_if_try.py b/test/simple_source/bug36/03_if_try.py new file mode 100644 index 00000000..ac4ad545 --- /dev/null +++ b/test/simple_source/bug36/03_if_try.py @@ -0,0 +1,8 @@ +# The bug in python 3.6+ was in parsing that we +# add END_IF_THEN and using that inside "return results" +def whcms_license_info(md5hash, datahash, results): + if md5hash == datahash: + try: + return md5hash + except: + return results