Fixing remaining flake8 lint warnings
This commit is contained in:
@@ -4,15 +4,16 @@ import os
|
||||
import sys
|
||||
|
||||
import capnp
|
||||
capnp.add_import_hook([os.getcwd(), "/usr/local/include/"]) # change this to be auto-detected?
|
||||
capnp.add_import_hook([os.getcwd(), "/usr/local/include/"]) # change this to be auto-detected?
|
||||
|
||||
import test_capnp # noqa: E402
|
||||
import test_capnp # noqa: E402
|
||||
|
||||
|
||||
def decode(name):
|
||||
class_name = name[0].upper() + name[1:]
|
||||
print(getattr(test_capnp, class_name).from_bytes(sys.stdin.read())._short_str())
|
||||
|
||||
|
||||
def encode(name):
|
||||
val = getattr(test_capnp, name)
|
||||
class_name = name[0].upper() + name[1:]
|
||||
|
||||
Reference in New Issue
Block a user