This repository was archived by the owner on Aug 7, 2024. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,12 +11,14 @@ help:
1111env :
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
2224info :
@@ -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
Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments