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

Commit

Permalink
Merge pull request #413 from bear/master
Browse files Browse the repository at this point in the history
merge latest master changes into develop
  • Loading branch information
bear authored Nov 24, 2016
2 parents 82a57b1 + 5c5ddbd commit 6a3bc3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ help:
env:
pip install -Ur requirements.txt

dev: env
pyenv:
pyenv install -s 2.7.11
pyenv install -s 3.5.1
pyenv install -s pypy-5.3.1
pyenv install -s pypy3-2.4.0
pyenv local 2.7.11 3.5.1 pypy-5.3.1 pypy3-2.4.0
# pyenv install -s pypy3-2.4.0
pyenv local 2.7.11 3.5.1 pypy-5.3.1 # pypy3-2.4.0

dev: env pyenv
pip install -Ur requirements.testing.txt

info:
Expand Down Expand Up @@ -48,13 +50,7 @@ coverage: clean
coverage html
coverage report

ci:
pyenv install -s 2.7.11
pyenv install -s 3.5.1
pyenv install -s pypy-5.3.1
pyenv install -s pypy3-2.4.0
pyenv local 2.7.11 3.5.1 pypy-5.3.1 pypy3-2.4.0
pip install -Ur requirements.testing.txt
ci: pyenv
tox
CODECOV_TOKEN=`cat .codecov-token` codecov

Expand Down
2 changes: 1 addition & 1 deletion twitter/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1490,7 +1490,7 @@ def _TweetTextWrap(self,
line_length = 0
words = re.split(r'\s', status)

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

0 comments on commit 6a3bc3d

Please sign in to comment.