Commit e7649c78 authored by Julien Muchembled's avatar Julien Muchembled

Fix compatibility issue with Python < 2.7

parent ee43ad04
import argparse, calendar, errno, logging, os, shlex, signal, socket
import struct, subprocess, sys, textwrap, threading, time, traceback
try:
subprocess.CalledProcessError(0, '', '')
except TypeError: # BBB: Python < 2.7
def __init__(self, returncode, cmd, output=None):
self.returncode = returncode
self.cmd = cmd
self.output = output
subprocess.CalledProcessError.__init__ = __init__
logging_levels = logging.WARNING, logging.INFO, logging.DEBUG, 5
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment