Skip to content

Commit 825f2ff

Browse files
committed
fix random_regular
1 parent a967a64 commit 825f2ff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
language: python
22
python:
33
- "2.7"
4-
- "3.5"
54
- "3.6"
5+
- "3.7"
6+
- "3.8"
67
- "pypy"
78
- "pypy3"
89
install: pip install tox-travis

cyaron/string.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def random_paragraph(sentence_count_range, **kwargs):
101101
@staticmethod
102102
def random_regular(*args, **kwargs):
103103
pattern = args
104-
limit_len = int(kwargs.get("limit", default="10"))
104+
limit_len = int(kwargs.get("limit", "10"))
105105
if (limit_len <= 1): limit_len = 10
106106
if (list_like(args)):
107107
pattern = random.choice(args)

0 commit comments

Comments
 (0)