A dash of PEP-8

This commit is contained in:
Luke Rogers 2014-02-13 14:34:50 +13:00
parent 398b34fad5
commit 6cc7554cd8
11 changed files with 34 additions and 35 deletions

View file

@ -1,4 +1,3 @@
# Plugin by Lukeroge
from util import hook, text, textgen
import json
import os
@ -10,13 +9,13 @@ GEN_DIR = "./plugins/data/name_files/"
def get_generator(_json):
data = json.loads(_json)
return textgen.TextGenerator(data["templates"],
data["parts"], default_templates=data["default_templates"])
data["parts"], default_templates=data["default_templates"])
@hook.command(autohelp=False)
def namegen(inp, notice=None):
"namegen [generator] -- Generates some names using the chosen generator. " \
"'namegen list' will display a list of all generators."
"""namegen [generator] -- Generates some names using the chosen generator.
'namegen list' will display a list of all generators."""
# clean up the input
inp = inp.strip().lower()