Skip to content
This repository has been archived by the owner on Dec 10, 2017. It is now read-only.

Change to python-2.5 or later relative paths #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion herd/BitTornado/BT1/Choker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# see LICENSE.txt for license information

from random import randrange, shuffle
from herd.BitTornado.clock import clock
from .. clock import clock
try:
True
except:
Expand Down
4 changes: 2 additions & 2 deletions herd/BitTornado/BT1/Connecter.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Written by Bram Cohen
# see LICENSE.txt for license information

from herd.BitTornado.bitfield import Bitfield
from herd.BitTornado.clock import clock
from .. bitfield import Bitfield
from .. clock import clock
from binascii import b2a_hex

try:
Expand Down
6 changes: 3 additions & 3 deletions herd/BitTornado/BT1/Downloader.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Written by Bram Cohen
# see LICENSE.txt for license information

from herd.BitTornado.CurrentRateMeasure import Measure
from herd.BitTornado.bitfield import Bitfield
from .. CurrentRateMeasure import Measure
from .. bitfield import Bitfield
from random import shuffle
from herd.BitTornado.clock import clock
from .. clock import clock
try:
True
except:
Expand Down
4 changes: 2 additions & 2 deletions herd/BitTornado/BT1/HTTPDownloader.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Written by John Hoffman
# see LICENSE.txt for license information

from herd.BitTornado.CurrentRateMeasure import Measure
from .. CurrentRateMeasure import Measure
from random import randint
from urlparse import urlparse
from httplib import HTTPConnection
from urllib import quote
from threading import Thread
from herd.BitTornado.__init__ import product_name,version_short
from .. __init__ import product_name,version_short
try:
True
except:
Expand Down
2 changes: 1 addition & 1 deletion herd/BitTornado/BT1/PiecePicker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# see LICENSE.txt for license information

from random import randrange, shuffle
from herd.BitTornado.clock import clock
from .. clock import clock
try:
True
except:
Expand Down
4 changes: 2 additions & 2 deletions herd/BitTornado/BT1/Rerequester.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# modified for multitracker operation by John Hoffman
# see LICENSE.txt for license information

from herd.BitTornado.zurllib import urlopen, quote
from .. zurllib import urlopen, quote
from urlparse import urlparse, urlunparse
from socket import gethostbyname
from btformats import check_peers
from herd.BitTornado.bencode import bdecode
from .. bencode import bdecode
from threading import Thread, Lock
from cStringIO import StringIO
from traceback import print_exc
Expand Down
2 changes: 1 addition & 1 deletion herd/BitTornado/BT1/Storage.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Written by Bram Cohen
# see LICENSE.txt for license information

from herd.BitTornado.piecebuffer import BufferPool
from .. piecebuffer import BufferPool
from threading import Lock
from time import time, strftime, localtime
import os
Expand Down
4 changes: 2 additions & 2 deletions herd/BitTornado/BT1/StorageWrapper.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Written by Bram Cohen
# see LICENSE.txt for license information

from herd.BitTornado.bitfield import Bitfield
from .. bitfield import Bitfield
try:
from hashlib import sha1 as sha
except ImportError:
from sha import sha
from herd.BitTornado.clock import clock
from .. clock import clock
from traceback import print_exc
from random import randrange
try:
Expand Down
2 changes: 1 addition & 1 deletion herd/BitTornado/BT1/Uploader.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Written by Bram Cohen
# see LICENSE.txt for license information

from herd.BitTornado.CurrentRateMeasure import Measure
from .. CurrentRateMeasure import Measure

try:
True
Expand Down
2 changes: 1 addition & 1 deletion herd/BitTornado/BT1/makemetafile.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from sha import sha
from copy import copy
from string import strip
from herd.BitTornado.bencode import bencode
from .. bencode import bencode
from btformats import check_info
from threading import Event
from time import time
Expand Down
24 changes: 12 additions & 12 deletions herd/BitTornado/BT1/track.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
# Written by Bram Cohen
# see LICENSE.txt for license information

from herd.BitTornado.parseargs import parseargs, formatDefinitions
from herd.BitTornado.RawServer import RawServer, autodetect_ipv6, autodetect_socket_style
from herd.BitTornado.HTTPHandler import HTTPHandler, months, weekdays
from herd.BitTornado.parsedir import parsedir
from .. parseargs import parseargs, formatDefinitions
from .. RawServer import RawServer, autodetect_ipv6, autodetect_socket_style
from .. HTTPHandler import HTTPHandler, months, weekdays
from .. parsedir import parsedir
from NatCheck import NatCheck
from T2T import T2TList
from herd.BitTornado.subnetparse import IP_List, ipv6_to_ipv4, to_ipv4, is_valid_ip, is_ipv4
from herd.BitTornado.iprangeparse import IP_List as IP_Range_List
from herd.BitTornado.torrentlistparse import parsetorrentlist
from .. subnetparse import IP_List, ipv6_to_ipv4, to_ipv4, is_valid_ip, is_ipv4
from .. iprangeparse import IP_List as IP_Range_List
from .. torrentlistparse import parsetorrentlist
from threading import Event, Thread
from herd.BitTornado.bencode import bencode, bdecode, Bencached
from herd.BitTornado.zurllib import urlopen, quote, unquote
from .. bencode import bencode, bdecode, Bencached
from .. zurllib import urlopen, quote, unquote
from Filter import Filter
from urlparse import urlparse
from os import rename, getpid
from os.path import exists, isfile
from cStringIO import StringIO
from traceback import print_exc
from time import time, gmtime, strftime, localtime
from herd.BitTornado.clock import clock
from .. clock import clock
from random import shuffle, seed, randrange
try:
from hashlib import sha1 as sha
Expand All @@ -32,8 +32,8 @@
import sys, os
import signal
import re
import herd.BitTornado.__init__
from herd.BitTornado.__init__ import version, createPeerID
#import .. __init__
from .. __init__ import version, createPeerID
try:
True
except:
Expand Down