small remove print calls

Dieser Commit ist enthalten in:
Sebastian Tobie 2024-02-24 10:45:49 +01:00
Ursprung 8dbb67faf8
Commit e583ad0f96
5 geänderte Dateien mit 15 neuen und 6 gelöschten Zeilen

Datei anzeigen

@ -5,6 +5,9 @@ Sebastian.Base Release Notes
.. contents:: Topics .. contents:: Topics
v0.3.0
======
v0.2.0 v0.2.0
====== ======

Datei anzeigen

@ -4,5 +4,13 @@ releases:
changes: changes:
release_summary: change the module to an ansible module release_summary: change the module to an ansible module
fragments: fragments:
- base_release.yml - base_release.yml
release_date: '2024-02-11' release_date: "2024-02-11"
0.3.0:
changes:
release_summary: rewrote the Types helper
release_date: "2024-02-24"
0.3.1:
changes:
release_summary: removed forgotten print calls
release_date: "2024-02-24"

Datei anzeigen

@ -1,7 +1,7 @@
--- ---
namespace: sebastian namespace: sebastian
name: base name: base
version: 0.3.0 version: 0.3.1
readme: README.md readme: README.md

Datei anzeigen

@ -32,7 +32,6 @@ def wrap_func(func, **updates):
except AttributeError: except AttributeError:
pass pass
else: else:
print(f"changing:\n {value}\n {getattr(wrapper, attr)}")
setattr(wrapper, attr, value) setattr(wrapper, attr, value)
for attr, value in updates.items(): for attr, value in updates.items():
setattr(wrapper, attr, value) setattr(wrapper, attr, value)
@ -82,7 +81,6 @@ class meta(type):
) )
) )
for attr in types - set(attrs.keys()): for attr in types - set(attrs.keys()):
print(f"adding {attr} function")
attrs[attr] = wrap_func( attrs[attr] = wrap_func(
default(attr), __doc__=GENERIC_DOC.format(type=attr), __name__=attr, __qualname__=f"{clsname}.{attr}" default(attr), __doc__=GENERIC_DOC.format(type=attr), __name__=attr, __qualname__=f"{clsname}.{attr}"
) )

Datei anzeigen

@ -1 +1 @@
__version__ = "0.3.0" __version__ = "0.3.1"