From 8b33fa718947fa508f59bb8461a65e2fcb3ca6fa Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Tue, 17 Nov 2015 19:55:50 -0800 Subject: Use the new absolute import syntax to fix Python 3. [PEP 328] I used the output of "2to3 -f import M2Crypto" to figure out which imports needed to be fixed. In addition, I added "from __future__ import absolute_import" to all files that I touched. This brings in the new import behavior, and works as far back as Python 2.5.0a1. See: https://docs.python.org/3/library/__future__.html https://www.python.org/dev/peps/pep-0328/ --- M2Crypto/EC.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'M2Crypto/EC.py') diff --git a/M2Crypto/EC.py b/M2Crypto/EC.py index 800a705..f27a574 100644 --- a/M2Crypto/EC.py +++ b/M2Crypto/EC.py @@ -1,3 +1,5 @@ +from __future__ import absolute_import + """ M2Crypto wrapper for OpenSSL ECDH/ECDSA API. @@ -8,7 +10,7 @@ Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved. Portions copyright (c) 2005-2006 Vrije Universiteit Amsterdam. All rights reserved.""" -import util, BIO, m2 +from . import util, BIO, m2 class ECError(Exception): pass -- cgit v1.2.1