python: samba.tests: Move import of ported modules out of PY3 condition
authorLumir Balhar <lbalhar@redhat.com>
Mon, 2 Jan 2017 07:52:29 +0000 (08:52 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Mar 2017 06:31:11 +0000 (07:31 +0100)
Signed-off-by: Lumir Balhar <lbalhar@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/tests/__init__.py

index ba215ea9e849cf76df02805e439a12a413f8a2b8..21a55c24735d03231c09622e61887b70641f65b9 100644 (file)
@@ -30,14 +30,14 @@ import subprocess
 import sys
 import tempfile
 import unittest
+import samba.auth
+import samba.dcerpc.base
 from samba.compat import PY3
 if not PY3:
     # Py2 only
-    import samba.auth
     from samba.samdb import SamDB
     import samba.ndr
     import samba.dcerpc.dcerpc
-    import samba.dcerpc.base
     import samba.dcerpc.epmapper
     from samba import gensec