Merge branch 'master' into python3

This commit is contained in:
Joe
2018-06-08 14:32:27 +00:00
committed by GitHub
7 changed files with 15 additions and 102 deletions

View File

@@ -18,9 +18,15 @@
# You should have received a copy of the GNU General Public License
# along with whipper. If not, see <http://www.gnu.org/licenses/>.
import logging
import sys
import gobject
try:
from gi.repository import GLib as gobject
except ImportError:
import gobject
logger = logging.getLogger(__name__)
class TaskException(Exception):
@@ -70,21 +76,14 @@ class LogStub(object):
I am a stub for a log interface.
"""
# log stubs
def log(self, message, *args):
pass
logger.info(message, *args)
def debug(self, message, *args):
pass
def info(self, message, *args):
pass
logger.debug(message, *args)
def warning(self, message, *args):
pass
def error(self, message, *args):
pass
logger.warning(message, *args)
class Task(LogStub):