'Get raw torrent data by determining what self.torrent is'

def _get_raw_torrent(self):

    if self._is_raw():
        self.file_type = 'raw'
        self._raw_torrent = self.torrent
        return
    if os.path.isfile(self.torrent):
        self.file_type = 'file'
        self._raw_torrent = open(self.torrent, 'rb').read()
    elif re.search('^(http|ftp):\\/\\/', self.torrent, re.I):
        self.file_type = 'url'
        self._raw_torrent = urlopen(self.torrent).read()
