Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 2 Lib/test/test_clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -3920,7 +3920,7 @@ def test_Function_and_Parameter_reprs(self):
self.assertEqual(repr(parameter), "<clinic.Parameter 'bar'>")

def test_Monitor_repr(self):
monitor = clinic.cpp.Monitor("test.c")
monitor = libclinic.cpp.Monitor("test.c")
self.assertRegex(repr(monitor), r"<clinic.Monitor \d+ line=0 condition=''>")

monitor.line_number = 42
Expand Down
4 changes: 2 additions & 2 deletions 4 Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
import collections
import contextlib
import copy
import cpp
import dataclasses as dc
import enum
import functools
Expand Down Expand Up @@ -53,6 +52,7 @@

# Local imports.
import libclinic
import libclinic.cpp
from libclinic import ClinicError


Expand Down Expand Up @@ -648,7 +648,7 @@ class CLanguage(Language):

def __init__(self, filename: str) -> None:
super().__init__(filename)
self.cpp = cpp.Monitor(filename)
self.cpp = libclinic.cpp.Monitor(filename)

def parse_line(self, line: str) -> None:
self.cpp.writeline(line)
Expand Down
5 changes: 4 additions & 1 deletion 5 Tools/clinic/cpp.py → Tools/clinic/libclinic/cpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
import sys
from typing import NoReturn

from libclinic.errors import ParseError
from .errors import ParseError


__all__ = ["Monitor"]


TokenAndCondition = tuple[str, str]
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.