# Path: restkit/errors.py
# class InvalidUrl(Exception):
#     """
#     Not a valid url for use with this software.
#     """


import os
import re
import time
import urllib
import urlparse
import warnings
import Cookie
    import subprocess
from restkit.errors import InvalidUrl
# -*- coding: utf-8 -
#
# This file is part of restkit released under the MIT license. 
# See the NOTICE for more information.



absolute_http_url_re = re.compile(r"^https?://", re.I)

try:#python 2.6, use subprocess
    subprocess.Popen  # trigger ImportError early
    closefds = os.name == 'posix'
    

# Path: restkit/errors.py
# class InvalidUrl(Exception):
#     """
#     Not a valid url for use with this software.
#     """


# Path: restkit/util.py
import os
import re
import time
import urllib
import urlparse
import warnings
import Cookie
    import subprocess
from restkit.errors import InvalidUrl

# -*- coding: utf-8 -
#
# This file is part of restkit released under the MIT license. 
# See the NOTICE for more information.



absolute_http_url_re = re.compile(r"^https?://", re.I)

try:#python 2.6, use subprocess
    subprocess.Popen  # trigger ImportError early
    closefds = os.name == 'posix'
    

    def popen3(cmd, mode='t', bufsize=0):