diff --git a/beem/account.py b/beem/account.py index 67cf2bc3ca1eb02e1104782758bad22a6a7d5368..ce44025b39a8acda064cf59dc58142bc377258ff 100644 --- a/beem/account.py +++ b/beem/account.py @@ -397,7 +397,8 @@ class Account(BlockchainObject): return reputation_to_score(rep) def get_manabar(self): - """"Return manabar""" + """ Return manabar + """ max_mana = self.get_effective_vesting_shares() if max_mana == 0: props = self.steem.get_chain_properties() diff --git a/beem/asciichart.py b/beem/asciichart.py index b88223449cc43216094df88c7d6ecbf63c5eb961..9e1be974c1ec65e6b3cdd0ec0c40b37089190a93 100644 --- a/beem/asciichart.py +++ b/beem/asciichart.py @@ -21,7 +21,7 @@ class AsciiChart(object): :param int height: Height of the plot :param int width: Width of the plot :param int offset: Offset between tick strings and y-axis (default is 3) - :param str placeholder: Defines how the numbers on the y-axes are formated (default is '{:8.2f} ') + :param str placeholder: Defines how the numbers on the y-axes are formatted (default is '{:8.2f}') :param str charset: sets the charset for plotting, uft8 or ascii (default: utf8) """ def __init__(self, height=None, width=None, offset=3, placeholder=u'{:8.2f} ', charset=u'utf8'): diff --git a/beem/comment.py b/beem/comment.py index 9840a7a02cfbaea93a4ae4c26410037408780684..64f3865fb8a0f0ba857ac0a3672e3e3903fe483c 100644 --- a/beem/comment.py +++ b/beem/comment.py @@ -283,7 +283,7 @@ class Comment(BlockchainObject): return author + curator + pending def is_pending(self): - """ Return if the payout is pending (the post/comment + """ Returns if the payout is pending (the post/comment is younger than 7 days) """ a_zero = Amount(0, self.steem.sbd_symbol, steem_instance=self.steem) @@ -292,7 +292,7 @@ class Comment(BlockchainObject): return post_age_days < 7.0 and float(total) == 0 def time_elapsed(self): - """Return a timedelta on how old the post is. + """Returns a timedelta on how old the post is. """ utc = pytz.timezone('UTC') return utc.localize(datetime.utcnow()) - self['created'] @@ -325,7 +325,7 @@ class Comment(BlockchainObject): return K * vote_value_SBD * t * math.sqrt(estimated_value_SBD) def get_curation_penalty(self, vote_time=None): - """ If post is less than 30 minutes old, it will incur a curation + """ If post is less than 15 minutes old, it will incur a curation reward penalty. :param datetime vote_time: A vote time can be given and the curation @@ -569,7 +569,7 @@ class Comment(BlockchainObject): return [] def get_parent(self, children=None): - """ Returns the parent post width depth == 0""" + """ Returns the parent post with depth == 0""" if children is None: children = self while children["depth"] > 0: diff --git a/beem/steem.py b/beem/steem.py index 0b0a61c7c652ce91fc7e9240104df9a7f3e814f0..b6a5a7ff1b85be158a183176a1e1a831fa926904 100644 --- a/beem/steem.py +++ b/beem/steem.py @@ -916,7 +916,7 @@ class Steem(object): posting permission. Neither can you use different accounts for different operations! - .. note:: This uses ``beem.txbuffer`` as instance of + .. note:: This uses :func:`Steem.txbuffer` as instance of :class:`beem.transactionbuilder.TransactionBuilder`. You may want to use your own txbuffer """ @@ -1047,7 +1047,7 @@ class Steem(object): # Account related calls # ------------------------------------------------------------------------- def claim_account(self, creator, fee=None, **kwargs): - """"Claim account for claimed account creation. + """ Claim account for claimed account creation. When fee is 0 STEEM a subsidized account is claimed and can be created later with create_claimed_account. diff --git a/beem/steemconnect.py b/beem/steemconnect.py index 8f9ee237175da36b72729e33adfa771fa370219a..c40456266b3d8f69afcf6e48d61a8b5e4b98e36c 100644 --- a/beem/steemconnect.py +++ b/beem/steemconnect.py @@ -163,7 +163,7 @@ class SteemConnect(object): self.access_token = self.steem.wallet.getTokenForAccountName(username) def broadcast(self, operations, username=None): - """ Broadcast a operations + """ Broadcast an operation Sample operations: diff --git a/beem/transactionbuilder.py b/beem/transactionbuilder.py index 79b24b740303002e7f80d32a1f7551d2fd081d7d..af32d56736deae3bf261acb26ac542035a6b5d95 100644 --- a/beem/transactionbuilder.py +++ b/beem/transactionbuilder.py @@ -377,7 +377,7 @@ class TransactionBuilder(dict): Clears itself when broadcast was not successfully. - :param int max_block_age: paramerter only used + :param int max_block_age: parameter only used for appbase ready nodes """ diff --git a/docs/configuration.rst b/docs/configuration.rst index f7119ca1753399b47be0a5e6a245181df6db5cad..01bb2a8003f36f85d0d0aeb31c0d4f484544ce5a 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -57,7 +57,7 @@ beempy can also be used to set nodes: beempy set nodes wss://steemd.privex.io beempy set nodes "['wss://steemd.privex.io', 'wss://gtg.steem.house:8090']" -The default nodes can be resetted to the default value. When the first node does not +The default nodes can be reset to the default value. When the first node does not answer, steem should be set to the offline mode. This can be done by: .. code-block:: bash