1
0
Fork 0

powertop2tuned: fixed import exception with python2

Related to python3 conversion.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2018-01-02 16:21:27 +01:00
parent f563c7d756
commit d8ddccb20d
No known key found for this signature in database
GPG key ID: D8E1C00E076E840B

View file

@ -20,7 +20,11 @@
#
from __future__ import print_function
from builtins import chr
# exception handler for python 2/3 compatibility
try:
from builtins import chr
except ImportError:
pass
import os
import sys
import tempfile
@ -28,6 +32,7 @@ import shutil
import argparse
import codecs
from subprocess import *
# exception handler for python 2/3 compatibility
try:
from html.parser import HTMLParser
from html.entities import name2codepoint