From a9b7721110f73fe78109fd5b24a4804b6194e474 Mon Sep 17 00:00:00 2001 From: Flugschwein <flugschwein@gmx.at> Date: Sun, 28 Oct 2018 20:10:35 +0100 Subject: [PATCH] Fix straight typos. --- beem/account.py | 3 ++- beem/asciichart.py | 2 +- beem/comment.py | 8 ++++---- beem/steem.py | 4 ++-- beem/steemconnect.py | 2 +- beem/transactionbuilder.py | 2 +- docs/configuration.rst | 2 +- 7 files changed, 12 insertions(+), 11 deletions(-) diff --git a/beem/account.py b/beem/account.py index 67cf2bc3..ce44025b 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 b8822344..9e1be974 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 9840a7a0..64f3865f 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 0b0a61c7..b6a5a7ff 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 8f9ee237..c4045626 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 79b24b74..af32d567 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 f7119ca1..01bb2a80 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 -- GitLab