Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 6a3bc3d

Browse files
authored
Merge pull request #413 from bear/master
merge latest master changes into develop
2 parents 82a57b1 + 5c5ddbd commit 6a3bc3d

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

Makefile

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ help:
1111
env:
1212
pip install -Ur requirements.txt
1313

14-
dev: env
14+
pyenv:
1515
pyenv install -s 2.7.11
1616
pyenv install -s 3.5.1
1717
pyenv install -s pypy-5.3.1
18-
pyenv install -s pypy3-2.4.0
19-
pyenv local 2.7.11 3.5.1 pypy-5.3.1 pypy3-2.4.0
18+
# pyenv install -s pypy3-2.4.0
19+
pyenv local 2.7.11 3.5.1 pypy-5.3.1 # pypy3-2.4.0
20+
21+
dev: env pyenv
2022
pip install -Ur requirements.testing.txt
2123

2224
info:
@@ -48,13 +50,7 @@ coverage: clean
4850
coverage html
4951
coverage report
5052

51-
ci:
52-
pyenv install -s 2.7.11
53-
pyenv install -s 3.5.1
54-
pyenv install -s pypy-5.3.1
55-
pyenv install -s pypy3-2.4.0
56-
pyenv local 2.7.11 3.5.1 pypy-5.3.1 pypy3-2.4.0
57-
pip install -Ur requirements.testing.txt
53+
ci: pyenv
5854
tox
5955
CODECOV_TOKEN=`cat .codecov-token` codecov
6056

twitter/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ def _TweetTextWrap(self,
14901490
line_length = 0
14911491
words = re.split(r'\s', status)
14921492

1493-
if len(words) == 1 and not is_url(words):
1493+
if len(words) == 1 and not is_url(words[0]):
14941494
if len(words[0]) > 140:
14951495
raise TwitterError({"message": "Unable to split status into tweetable parts. Word was: {0}/{1}".format(len(words[0]), char_lim)})
14961496
else:

0 commit comments

Comments
 (0)