Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop spurious "Generating ..." output and make it part of logger.debug #105

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 4 additions & 4 deletions comtypes/client/_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def GetModule(tlib):
else:
return mod
# the module is always regenerated if the import fails
if __verbose__:
print "# Generating comtypes.gen.%s" % modulename
logger.debug("# Generating comtypes.gen.%s", modulename)

# determine the Python module name
fullname = _name_module(tlib)
modname = fullname.split(".")[-1]
Expand Down Expand Up @@ -171,8 +171,8 @@ def _CreateWrapper(tlib, pathname=None):
else:
ofi = open(os.path.join(comtypes.client.gen_dir, modname + ".py"), "w")
# XXX use logging!
if __verbose__:
print "# Generating comtypes.gen.%s" % modname
logger.debug("# Generating comtypes.gen.%s", modname)

generate_module(tlib, ofi, pathname)

if comtypes.client.gen_dir is None:
Expand Down