Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jendrikseipp committed Jan 19, 2023
1 parent fd7395c commit ecdda25
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vulture/core.py
Expand Up @@ -386,11 +386,13 @@ def unused_attrs(self):

def _log(self, *args, file=None, force=False):
if self.verbose or force:
file = file or sys.stdout
try:
print(*args, file=file if file else sys.stdout)
print(*args, file=file)
except UnicodeEncodeError:
# Some terminals can't print Unicode symbols.
x = " ".join(map(str, args))
print(x.encode(), file=file if file else sys.stdout)
print(x.encode(), file=file)

def _add_aliases(self, node):
"""
Expand Down

0 comments on commit ecdda25

Please sign in to comment.