Skip to content

Commit 02c5bbf

Browse files
author
shinnng
committed
add the need_quota_gas switch
1 parent 1cc5f8c commit 02c5bbf

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

client_sdk_python/packages/eth_utils/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import collections
1+
import collections.abc
22
import numbers
33
from typing import Any
44

@@ -33,7 +33,7 @@ def is_dict(obj: Any) -> bool:
3333

3434

3535
def is_list_like(obj: Any) -> bool:
36-
return not is_string(obj) and isinstance(obj, collections.Sequence)
36+
return not is_string(obj) and isinstance(obj, collections.abc.Sequence)
3737

3838

3939
def is_list(obj: Any) -> bool:

client_sdk_python/packages/platon_account/account.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from collections import (
1+
from collections.abc import (
22
Mapping,
33
)
44
import json

client_sdk_python/packages/platon_keys/datatypes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
abstractmethod,
66
)
77
import codecs
8-
import collections
8+
import collections.abc
99
import sys
1010
from typing import ( # noqa: F401
1111
Any,
@@ -61,11 +61,11 @@
6161
if sys.version_info[0] == 2:
6262
ByteString = type(
6363
b'BaseString',
64-
(collections.Sequence, basestring), # noqa: F821
64+
(collections.abc.Sequence, basestring), # noqa: F821
6565
{},
6666
) # type: Any
6767
else:
68-
ByteString = collections.ByteString
68+
ByteString = collections.abc.ByteString
6969

7070

7171
class LazyBackend:
@@ -112,7 +112,7 @@ def get_backend(cls, *args: Any, **kwargs: Any) -> 'BaseECCBackend':
112112
return get_backend(*args, **kwargs)
113113

114114

115-
class BaseKey(ByteString, collections.Hashable):
115+
class BaseKey(ByteString, collections.abc.Hashable):
116116
_raw_key = None # type: bytes
117117

118118
def to_hex(self) -> str:

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
setup(
6161
name='client-sdk-python',
6262
# *IMPORTANT*: Don't manually change the version here. Use the 'bumpversion' utility.
63-
version='0.15.1.7',
64-
description="""PlatON python SDK """,
63+
version='1.0.0',
64+
description="""PlatON python SDK""",
6565
# long_description_markdown_filename='README.md',
6666
author='Piper shinnng',
6767
author_email='shinnng@outlook.com',

0 commit comments

Comments
 (0)