Skip to content

Commit 386fb38

Browse files
committed
cleaning with autoflake
1 parent d9c6527 commit 386fb38

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

src/pointers/api_bindings.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
from ._pyapi import API_FUNCS, Func
44
from .base_pointers import BaseObjectPointer
55
from .bindings import (
6-
CharLike, Format, PointerLike, StringLike, binding_base, make_char,
7-
make_format, make_string
6+
CharLike, PointerLike, StringLike, binding_base, make_char, make_string
87
)
98
from .std_structs import *
109
from .structure import StructPointer

src/pointers/exceptions.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,46 +13,38 @@
1313
class AllocationError(Exception):
1414
"""Raised when a memory allocation fails."""
1515

16-
pass
1716

1817

1918
class DereferenceError(Exception):
2019
"""Raised when dereferencing an address fails.""" # noqa
2120

22-
pass
2321

2422

2523
class FreedMemoryError(Exception):
2624
"""Raised when trying to perform an operation on freed memory."""
2725

28-
pass
2926

3027

3128
class InvalidSizeError(Exception):
3229
"""Raised when trying to move an object of the wrong size to an allocation.""" # noqa
3330

34-
pass
3531

3632

3733
class InvalidBindingParameter(Exception):
3834
"""Raised when an invalid type is passed to a binding."""
3935

40-
pass
4136

4237

4338
class NullPointerError(Exception):
4439
"""Raised when a pointer is null."""
4540

46-
pass
4741

4842

4943
class InvalidVersionError(Exception):
5044
"""Python version is not high enough."""
5145

52-
pass
5346

5447

5548
class SegmentViolation(Exception):
5649
"""SIGSEGV was sent to Python."""
5750

58-
pass

0 commit comments

Comments
 (0)