Update bencode.py from BitTorrent-5.2.2. This changes the license to

Python Software Foundation License Version 2.3.
This commit is contained in:
Andrew Resch 2009-01-12 22:44:27 +00:00
parent 8a6461bef8
commit 855315dfb1

View File

@ -1,7 +1,7 @@
# The contents of this file are subject to the BitTorrent Open Source License # The contents of this file are subject to the Python Software Foundation
# Version 1.1 (the License). You may not copy or use this file, in either # License Version 2.3 (the License). You may not copy or use this file, in
# source code or executable form, except in compliance with the License. You # either source code or executable form, except in compliance with the License.
# may obtain a copy of the License at http://www.bittorrent.com/license/. # You may obtain a copy of the License at http://www.python.org/license.
# #
# Software distributed under the License is distributed on an AS IS basis, # Software distributed under the License is distributed on an AS IS basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
@ -10,6 +10,8 @@
# Written by Petru Paler # Written by Petru Paler
# Minor modifications made by Andrew Resch to replace the BTFailure errors with Exceptions
def decode_int(x, f): def decode_int(x, f):
f += 1 f += 1
newf = x.index('e', f) newf = x.index('e', f)