Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix a few typos #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qqweibo/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ def _user_update_head(self, filename):
)

""" 6.friends/del取消收听某个用户 """
_friends_del = bind_api( # fix confilicts with del
_friends_del = bind_api( # fix conflicts with del
path = '/friends/del',
method = 'POST',
allowed_param = ['name'],
Expand Down
2 changes: 1 addition & 1 deletion qqweibo/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def add(self):
"""收听某个用户"""
assertion(not bool(self.self), "you can't follow your self")
if self.ismyidol:
return # already flollowed
return # already followed
else:
self._api.friends.add(name=self.name)
follow = add
Expand Down
4 changes: 2 additions & 2 deletions tests/test_pyqqweibo.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def test_retweetcount(self):
flag=0)
count0 = ret0.as_dict()['79504073889068']
assert count0 > 0
# in some senconds
# in some seconds
assert count0 - 10 <= count <= count0

ret1 = api.tweet.retweetcount(ids=79504073889068,
Expand Down Expand Up @@ -765,7 +765,7 @@ def test_delete(self):
assert not info.ismyidol

try:
# BUG: will cause errcode=65. reason unkown
# BUG: will cause errcode=65. reason unknown
api.friends.add(name='t')
except:
pass
Expand Down