Skip to content

Commit

Permalink
fix random_regular
Browse files Browse the repository at this point in the history
  • Loading branch information
moesoha committed Dec 17, 2019
1 parent a967a64 commit 825f2ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "pypy"
- "pypy3"
install: pip install tox-travis
Expand Down
2 changes: 1 addition & 1 deletion cyaron/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def random_paragraph(sentence_count_range, **kwargs):
@staticmethod
def random_regular(*args, **kwargs):
pattern = args
limit_len = int(kwargs.get("limit", default="10"))
limit_len = int(kwargs.get("limit", "10"))
if (limit_len <= 1): limit_len = 10
if (list_like(args)):
pattern = random.choice(args)
Expand Down

0 comments on commit 825f2ff

Please sign in to comment.