Skip to content

Commit 19ea84b

Browse files
author
Atif Nazir
committed
prevent inadvertent passing of pin + test for python2.7
1 parent 8a917cd commit 19ea84b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ For more information, see [Python API Docs](https://block.io/api/simple/python).
3434

3535
## Windows Users, Please Note:
3636

37-
You can install it like so on Windows: "pip install block-io==1.1.8"
37+
You can install it like so on Windows: "pip install block-io==1.1.10"
3838

3939
Now regarding the vcvarsall.bat error -- that error is due to the fact that pycrypto library is being compiled when you're trying to install the block-io library.
4040

@@ -51,7 +51,7 @@ Once this is done, go to C:\Python3.4\Lib\distutils, and create a file calls "di
5151
compiler=mingw32
5252

5353

54-
Now exit your Command Prompt or Python IDE, go to Command Prompt again, type "pip install block-io==1.1.8".
54+
Now exit your Command Prompt or Python IDE, go to Command Prompt again, type "pip install block-io==1.1.10".
5555

5656

5757
## Contributing

block_io/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,8 @@ def sweep_meta(self, method, **kwargs):
222222
def withdraw_meta(self, method, **kwargs):
223223
# withdraw call meta
224224

225-
if (self.version == 1):
226-
# we'll use the pin if we're using version 1
227-
kwargs['pin'] = self.pin
225+
# no inadvertent passing of pin
226+
kwargs.pop('pin', None)
228227

229228
response = self.api_call(method, **kwargs)
230229

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from setuptools import setup
22

33
setup(name='block-io',
4-
version='1.1.9',
4+
version='1.1.10',
55
description='The easiest way to integrate Bitcoin, Dogecoin and Litecoin in your applications. Sign up at Block.io for your API key.',
66
url='https://github.com/BlockIo/block_io-python',
77
author='Atif Nazir',
@@ -10,7 +10,7 @@
1010
packages=['block_io'],
1111
install_requires=[
1212
'requests>=2.20.0',
13-
'pycryptodome==3.6.6',
13+
'pycryptodome>=3.6.6,<4.0',
1414
'ecdsa==0.13',
1515
'six>=1.8.0',
1616
'base58>=1.0.0'

0 commit comments

Comments
 (0)