Redundant .write()

This commit is contained in:
Lonami 2018-10-21 15:21:41 +02:00 committed by GitHub
parent 3c248341a1
commit 99459cbfb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,9 +40,7 @@ def generate_errors(errors, f):
if error.has_captures:
f.write('.format(self.{})'.format(error.capture_name))
f.write(' + self._fmt_request(request)')
f.write(')\n')
f.write(' + self._fmt_request(request))\n')
# Create the actual {CODE: ErrorClassName} dict once classes are defined
f.write('\n\nrpc_errors_dict = {\n')