Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reverting this to previous state to undo last commit

  • Loading branch information...
commit 05790687a9f58cb87b60696541a22090b71b7c6d 1 parent 042c087
Jason Baker authored
Showing with 2 additions and 10 deletions.
  1. +2 −10 shrapnel/command.py
View
12 shrapnel/command.py
@@ -66,10 +66,6 @@ def run(self):
help = "The path to a file which will contain the server's informational log messages."
)
- parser.add_option('-p', '--profile',
- default = False,
- help = "Run the application in cProfile")
-
options, args = parser.parse_args()
os.chdir(self.path)
@@ -79,11 +75,7 @@ def run(self):
signal.signal(signal.SIGINT, self._do_signal)
signal.signal(signal.SIGTERM, self._do_signal)
- if options.profile:
- from cProfile import runctx
- runctx('self.start(options)', locals(), globals(), 'outprof')
- else:
- self.start(options)
+ self.start(options)
def _daemonize(self, options):
# http://code.activestate.com/recipes/278731/
@@ -216,4 +208,4 @@ def __init__(self, logger):
self.logger = logger
def write(self, data):
- self.logger(data)
+ self.logger(data)
Please sign in to comment.
Something went wrong with that request. Please try again.