# Path: newsreap/Logging.py
# NEWSREAP_ENGINE = '%s.engine' % NEWSREAP_LOGGER


import gevent.monkey
import signal
import subprocess
import re
import logging
from os import kill
from os import SEEK_SET
from StringIO import StringIO
from gevent import Greenlet
from gevent.event import Event
from datetime import datetime
from datetime import timedelta
from newsreap.Logging import NEWSREAP_ENGINE
# -*- coding: utf-8 -*-
#
# A threaded wrapper to subprocess to prevent blocking
#
# Copyright (C) 2016 Chris Caron <lead2gold@gmail.com>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.

gevent.monkey.patch_all()





# Logging
logger = logging.getLogger(NEWSREAP_ENGINE)

# Regular Expression for the extraction of data
NEW_LINE_RE = re.compile(r'\r*\n')



# Path: newsreap/Logging.py
# NEWSREAP_ENGINE = '%s.engine' % NEWSREAP_LOGGER


# Path: newsreap/SubProcess.py
import gevent.monkey
import signal
import subprocess
import re
import logging
from os import kill
from os import SEEK_SET
from StringIO import StringIO
from gevent import Greenlet
from gevent.event import Event
from datetime import datetime
from datetime import timedelta
from newsreap.Logging import NEWSREAP_ENGINE

# -*- coding: utf-8 -*-
#
# A threaded wrapper to subprocess to prevent blocking
#
# Copyright (C) 2016 Chris Caron <lead2gold@gmail.com>
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Lesser General Public License for more details.

gevent.monkey.patch_all()





# Logging
logger = logging.getLogger(NEWSREAP_ENGINE)

# Regular Expression for the extraction of data
NEW_LINE_RE = re.compile(r'\r*\n')



class ReturnCode():