Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
83d38548
Commit
83d38548
authored
Sep 16, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change wrap width to 79. Suppress blank line after tracebacks.
parent
2c6dfbe3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/zLOG/MinimalLogger.py
src/zLOG/MinimalLogger.py
+4
-3
No files found.
src/zLOG/MinimalLogger.py
View file @
83d38548
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
#
#
##############################################################################
##############################################################################
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
import
os
,
sys
,
time
import
os
,
sys
,
time
...
@@ -86,7 +86,7 @@ class stupid_log_write:
...
@@ -86,7 +86,7 @@ class stupid_log_write:
if
not
textwrap
or
len
(
line
)
<
80
:
if
not
textwrap
or
len
(
line
)
<
80
:
buf
.
append
(
line
)
buf
.
append
(
line
)
else
:
else
:
buf
.
extend
(
textwrap
.
wrap
(
line
,
subsequent_indent
=
" "
*
20
))
buf
.
extend
(
textwrap
.
wrap
(
line
,
width
=
79
,
subsequent_indent
=
" "
*
20
))
if
detail
:
if
detail
:
buf
.
append
(
str
(
detail
))
buf
.
append
(
str
(
detail
))
...
@@ -99,7 +99,8 @@ class stupid_log_write:
...
@@ -99,7 +99,8 @@ class stupid_log_write:
except
''
:
except
''
:
buf
.
append
(
"%s: %s"
%
error
[:
2
])
buf
.
append
(
"%s: %s"
%
error
[:
2
])
buf
.
append
(
""
)
# Cause a final \n to be appended
if
buf
[
-
1
]
and
buf
[
-
1
][
-
1
]
!=
"
\
n
"
:
buf
.
append
(
""
)
# Cause a final \n to be appended
_log_dest
.
write
(
"
\
n
"
.
join
(
buf
))
_log_dest
.
write
(
"
\
n
"
.
join
(
buf
))
_log_dest
.
flush
()
_log_dest
.
flush
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment