Skip to content

Commit b183871

Browse files
committed
code style
1 parent f3ceb5f commit b183871

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

tronapi/tron.py

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,34 @@
11
# -*- coding: utf-8 -*-
2-
##############################################################################
3-
# Copyright 2018-present, iEXBase, Inc.
4-
# All rights reserved.
2+
3+
# Copyright 2018 iEXBase
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# https://www.apache.org/licenses/LICENSE-2.0
510
#
6-
# This source code is licensed under the license found in the
7-
# LICENSE file in the root directory of this source tree.
8-
##############################################################################
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
"""
18+
Tron API from Python
19+
"""
920

1021
import base58
1122
import math
1223

1324
from tronapi.crypto import utils
14-
from tronapi.providers import HttpProvider
25+
from tronapi.provider import HttpProvider
1526

1627

1728
class Tron:
18-
def __init__(self, full_node, solidity_node=None, event_server=None, private_key=None):
29+
30+
def __init__(self, full_node, solidity_node=None, private_key=None):
31+
1932
if isinstance(full_node, str):
2033
full_node = HttpProvider(full_node)
2134

@@ -24,7 +37,6 @@ def __init__(self, full_node, solidity_node=None, event_server=None, private_key
2437

2538
self.full_node = full_node
2639
self.solidity_node = solidity_node
27-
self.event_server = event_server
2840

2941
if private_key:
3042
self.private_key = private_key

0 commit comments

Comments
 (0)