Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
- Removed debug print
- Replaced import statement as suggested by pylint
  • Loading branch information
cogu committed Feb 5, 2024
1 parent 8fa1770 commit 4705ba2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cfile/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/cfile/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
1 change: 0 additions & 1 deletion tests/test_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4705ba2

Please sign in to comment.