Skip to content

Commit

Permalink
Dont be noisy if everything works fine
Browse files Browse the repository at this point in the history
Signed-off-by: Steffen Vogel <[email protected]>
  • Loading branch information
stv0g committed Jun 21, 2024
1 parent 54811c7 commit f13ad68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 8 additions & 1 deletion cimgen/cimgen.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging
import os
import textwrap
import warnings
from time import time

import xmltodict
Expand Down Expand Up @@ -311,7 +312,13 @@ def wrap_and_clean(txt: str, width: int = 120, initial_indent="", subsequent_ind
"""
Used for comments: make them fit within <width> character, including indentation.
"""
soup = BeautifulSoup(txt, "html.parser")

# Ignore MarkupResemblesLocatorWarning
with warnings.catch_warnings():
warnings.simplefilter("ignore")

soup = BeautifulSoup(txt, "html.parser")

return "\n".join(
textwrap.wrap(
soup.text,
Expand Down
1 change: 0 additions & 1 deletion cimgen/languages/java/lang_pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def run_template(outputPath, class_details):
if attribute_type(attr) == "primitive":
class_details["primitives"].append(attr)
if class_details["is_a_float"] == True:
print(class_details["class_name"] + " is a float ")
templates = float_template_files
elif class_details["has_instances"] == True:
templates = enum_template_files
Expand Down

0 comments on commit f13ad68

Please sign in to comment.