From 825f2ffdc67d7d44fc278d5d636bc114f14e1610 Mon Sep 17 00:00:00 2001 From: Soha Jin Date: Wed, 18 Dec 2019 01:56:41 +0800 Subject: [PATCH] fix random_regular --- .travis.yml | 3 ++- cyaron/string.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7ae0c62..ade90f5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,9 @@ language: python python: - "2.7" - - "3.5" - "3.6" + - "3.7" + - "3.8" - "pypy" - "pypy3" install: pip install tox-travis diff --git a/cyaron/string.py b/cyaron/string.py index 2926535..6af1e5c 100644 --- a/cyaron/string.py +++ b/cyaron/string.py @@ -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)