Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apachedex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
apachedex
Commits
8688d98c
Commit
8688d98c
authored
Mar 27, 2014
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide traceback caused by KeyboardInterrupt.
Use a decorator to not indent the whole function.
parent
2091fbda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
apachedex/__init__.py
apachedex/__init__.py
+10
-0
No files found.
apachedex/__init__.py
View file @
8688d98c
...
...
@@ -1212,6 +1212,16 @@ def getTZInfo(tz):
_tz_cache
[
tz
]
=
tzi
=
AutoTZInfo
(
tz
)
return
tzi
def
_gracefulExit
(
*
class_list
):
@
functools
.
wraps
(
func
)
def
wrapper
(
*
args
,
**
kw
):
try
:
return
func
(
*
args
,
**
kw
)
except
KeyboardInterrupt
:
sys
.
exit
(
1
)
return
wrapper
@
_gracefulExit
def
main
():
parser
=
ShlexArgumentParser
(
description
=
'Compute Apdex out of '
'apache-style log files'
,
fromfile_prefix_chars
=
'@'
)
...
...
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