From babb3f83d375bd69e6d5048c69c2051141b5b674 Mon Sep 17 00:00:00 2001 From: Robert Sullivan Date: Tue, 25 Apr 2017 15:33:00 +0100 Subject: [PATCH] Python3.5 syntax changes --- broadlink/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/broadlink/__init__.py b/broadlink/__init__.py index 68ad559..3fe28a8 100644 --- a/broadlink/__init__.py +++ b/broadlink/__init__.py @@ -3,7 +3,7 @@ from datetime import datetime try: from Crypto.Cipher import AES -except ImportError, e: +except ImportError as e: import pyaes import time diff --git a/setup.py b/setup.py index 912cd30..ed627fe 100644 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ import warnings try: import pyaes dynamic_requires = ["pyaes==1.6.0"] -except ImportError, e: +except ImportError as e: dynamic_requires = ['pycrypto==2.6.1'] version = 0.3