Remove underscore from module names

This commit is contained in:
Lonami Exo
2018-06-18 21:02:42 +02:00
parent 262018959f
commit 4e9a84c3b5
19 changed files with 17 additions and 20 deletions

View File

@@ -1,6 +1,3 @@
import itertools
def generate_errors(errors, f):
# Exact/regex match to create {CODE: ErrorClassName}
exact_match = []
@@ -20,7 +17,7 @@ def generate_errors(errors, f):
exact_match.append(error)
# Imports and new subclass creation
f.write('from .rpc_base_errors import RPCError, {}\n'
f.write('from .rpcbaseerrors import RPCError, {}\n'
.format(", ".join(sorted(import_base))))
for cls, int_code in sorted(create_base.items(), key=lambda t: t[1]):