(s, punctuation=set(punctuation))
| 68 | Punctuation marks are stripped from words. |
| 69 | """ |
| 70 | def strip_punctuation(s, punctuation=set(punctuation)): |
| 71 | return [w for w in s if (isinstance(w, Word) and w.string or w) not in punctuation] |
| 72 | if n <= 0: |
| 73 | return [] |
| 74 | if isinstance(string, basestring): |
no outgoing calls
no test coverage detected
searching dependent graphs…