Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dc41a2a

Browse filesBrowse files
committed
Bump version to 1.2.0
1 parent 294927a commit dc41a2a
Copy full SHA for dc41a2a

File tree

Expand file treeCollapse file tree

3 files changed

+12
-3
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+12
-3
lines changed

‎README.rst

Copy file name to clipboardExpand all lines: README.rst
+10-1Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,27 @@ Usage
3030

3131
.. code-block:: python
3232
33-
from bencoder import bencode, bdecode
33+
from bencoder import bencode, bdecode, bdecode2
3434
3535
assert bencode("WWWWWW") == b'6:WWWWWW'
3636
assert bencode(233) == b'i233e'
3737
3838
with open("debian-8.3.0-amd64-netinst.iso.torrent", "rb") as f:
3939
torrent = bdecode(f.read())
4040
print(torrent['announce'])
41+
42+
decoded, length = bdecode2(b'6:WWWWWWi233e')
43+
assert decoded == b'WWWWWW'
44+
assert length == 8
4145
4246
ChangeLog
4347
----------
4448

49+
Version 1.2.0
50+
~~~~~~~~~~~~~~~
51+
52+
+ Add `bdecode2` method. `#6 <https://github.com/whtsky/bencoder.pyx/pull/6>`_
53+
4554
Version 1.1.3
4655
~~~~~~~~~~~~~~~
4756

‎bencoder.pyx

Copy file name to clipboardExpand all lines: bencoder.pyx
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# Based on https://github.com/karamanolev/bencode3/blob/master/bencode.py
1414

15-
__version__ = '1.1.3'
15+
__version__ = '1.2.0'
1616

1717
import array
1818

‎setup.py

Copy file name to clipboardExpand all lines: setup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def get_tag(self):
9797

9898
setup(
9999
name='bencoder.pyx',
100-
version='1.1.3',
100+
version='1.2.0',
101101
description='Yet another bencode implementation in Cython',
102102
long_description=open('README.rst', 'r').read(),
103103
author='whtsky',

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.