[linux] 01/02: abiupdate.py: Drop import fallback for Python 2 compatibility
debian-kernel at lists.debian.org
debian-kernel at lists.debian.org
Sat Jan 7 17:45:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
benh pushed a commit to branch master
in repository linux.
commit 6ad80b7201d6dd6a6b04f197509ae3a003dfd7fd
Author: Ben Hutchings <ben at decadent.org.uk>
Date: Sat Jan 7 17:33:17 2017 +0000
abiupdate.py: Drop import fallback for Python 2 compatibility
---
debian/bin/abiupdate.py | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/debian/bin/abiupdate.py b/debian/bin/abiupdate.py
index c23c044..0506a6d 100755
--- a/debian/bin/abiupdate.py
+++ b/debian/bin/abiupdate.py
@@ -8,11 +8,8 @@ import os
import shutil
import tempfile
-try:
- from urllib.request import urlopen
- from urllib.error import HTTPError
-except ImportError:
- from urllib2 import urlopen, HTTPError
+from urllib.request import urlopen
+from urllib.error import HTTPError
from debian_linux.abi import Symbols
from debian_linux.config import *
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git
More information about the Kernel-svn-changes
mailing list