Skip to content

Commit 2dc9c12

Browse files
committed
Fix backslash error.
1 parent 06f5fd4 commit 2dc9c12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdl3/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,8 @@ def SDL_GENERATE_DOCS(modules: list[str] = list(SDL_BINARY_VAR_MAP_INV.keys()),
556556
result = "" if rst else f"\"\"\"\n# This file is auto-generated, do not modify it.\n__meta__ = "
557557
if not rst: result += f"{{\"target\": \"v{__version__}\", \"system\": \"{SDL_SYSTEM}\"}}\n\"\"\"\n\n"
558558
result += f"from {'sdl3' if rst else ''}.SDL import *\n\n"
559-
result += f"from {'sdl3' if rst else ''}.__init__ import {'' if rst else 'raw, '}ctypes, typing, {'SDL_POINTER' if rst else '\\'}\n"
560-
if not rst: result += f"{' ' * 4}SDL_POINTER, SDL_CLONE_METACLASS as SDL_CloneMeta\n\n"
559+
result += f"from {'sdl3' if rst else ''}.__init__ import {'' if rst else 'raw, '}ctypes, typing, {'SDL_POINTER' if rst else ''}"
560+
result += "\n" if rst else f"\\\n{' ' * 4}SDL_POINTER, SDL_CLONE_METACLASS as SDL_CloneMeta\n\n"
561561
types, definitions = set(), ""
562562

563563
def SDL_GET_FULL_NAME(type: type | None) -> str:

0 commit comments

Comments
 (0)