From 4705ba20ea169abeffaa796f4aff7d8d70521dbe Mon Sep 17 00:00:00 2001 From: cogu Date: Mon, 5 Feb 2024 17:02:36 +0100 Subject: [PATCH] Minor fixes - Removed debug print - Replaced import statement as suggested by pylint --- src/cfile/factory.py | 2 +- src/cfile/writer.py | 2 +- tests/test_writer.py | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cfile/factory.py b/src/cfile/factory.py index c44f9f2..71a609e 100644 --- a/src/cfile/factory.py +++ b/src/cfile/factory.py @@ -3,7 +3,7 @@ """ from collections import namedtuple from typing import Union, Any -import cfile.core as core +from cfile import core BuiltInTypes = namedtuple("BuiltInTypes", ["char", "short", diff --git a/src/cfile/writer.py b/src/cfile/writer.py index a542a83..e842e8f 100644 --- a/src/cfile/writer.py +++ b/src/cfile/writer.py @@ -5,7 +5,7 @@ from io import StringIO from enum import Enum from typing import TextIO, Any -import cfile.core as core +from cfile import core import cfile.style as c_style diff --git a/tests/test_writer.py b/tests/test_writer.py index 9e80b23..3eacffa 100644 --- a/tests/test_writer.py +++ b/tests/test_writer.py @@ -694,7 +694,6 @@ def test_typedef_struct_statement(self): statement = core.Statement(core.Declaration(core.TypeDef("IntPair_T", core.Declaration(struct)))) writer = cfile.Writer(cfile.StyleOptions()) output = writer.write_str_elem(statement) - print(">>> " + output) expected = """typedef struct Struct_IntPair { int first;