diff options
| author | Talha Buğra Bulut <talhabulut@hotmail.com> | 2016-10-18 23:02:02 +0300 |
|---|---|---|
| committer | Talha Buğra Bulut <talhabulut@hotmail.com> | 2016-10-18 23:02:02 +0300 |
| commit | 7e8bf5cf5ea5de8c5cf5826a9840aeaa57eae71a (patch) | |
| tree | 276a6be582d76eef0f4bd393c6b10e4a982edea5 /example/app2/plugins/random.py | |
| parent | 244e2cbc74c06d73fea288cb94c684de2332e7f1 (diff) | |
| download | pluginbase-7e8bf5cf5ea5de8c5cf5826a9840aeaa57eae71a.tar.gz | |
conflict fix with random module
Diffstat (limited to 'example/app2/plugins/random.py')
| -rw-r--r-- | example/app2/plugins/random.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/example/app2/plugins/random.py b/example/app2/plugins/random.py deleted file mode 100644 index ed4c159..0000000 --- a/example/app2/plugins/random.py +++ /dev/null @@ -1,14 +0,0 @@ -import random -import string - - -def make_random(s): - chars = list(s) - for idx, char in enumerate(chars): - if char not in string.punctuation and not char.isspace(): - chars[idx] = random.choice(string.ascii_letters) - return ''.join(chars) - - -def setup(app): - app.register_formatter('random', make_random) |
