Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
installsystems
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Seblu
installsystems
Commits
6e9823f1
Commit
6e9823f1
authored
11 years ago
by
Sébastien Luttringer
Browse files
Options
Downloads
Patches
Plain Diff
Printer.out display nothing if message is None
parent
b7d9b425
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
installsystems/printer.py
+2
-0
2 additions, 0 deletions
installsystems/printer.py
with
2 additions
and
0 deletions
installsystems/printer.py
+
2
−
0
View file @
6e9823f1
...
...
@@ -64,6 +64,8 @@ def out(message="", fd=sys.stdout, endl=os.linesep, flush=True):
'''
Print message colorised in fd ended by endl
'''
if
message
is
None
:
return
# color subsitution
color_pattern
=
"
#(%s)#
"
%
"
|
"
.
join
(
COLOR
)
if
not
fd
.
isatty
()
or
NOCOLOR
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment