Verified Commit c11bc22d authored by Max Rees's avatar Max Rees

More linting

parent 41a22c86
......@@ -23,9 +23,6 @@ CLEAN_TARGETS = \
dist \
target
CGI.PY = site-packages/apkvitrine/cgi.py
BUILD_DB.PY = site-packages/apkvitrine/build_db.py
.PHONY: all
all:
$(SETUP.PY) build
......
#!/usr/bin/env python3
# SPDX-License-Identifier: NCSA
# Copyright (c) 2018-2020 Max Rees
# See LICENSE for more information.
......@@ -30,7 +29,8 @@ class _apk_blob_t(ctypes.Structure): # pylint: disable=too-few-public-methods
("ptr", ctypes.c_char_p),
]
def __init__(self, s): # pylint: disable=super-init-not-called
def __init__(self, s):
super().__init__()
s = s.encode("utf-8")
self.len = len(s)
self.ptr = ctypes.c_char_p(s)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment