~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/util.py

  • Committer: Matt Nordhoff
  • Date: 2009-04-18 06:30:47 UTC
  • mto: (389.2.2 pep8-2009-10)
  • mto: This revision was merged to the branch mainline in revision 392.
  • Revision ID: mnordhoff@mattnordhoff.com-20090418063047-v68pe52izncnylze
Clean up some unused imports and syntax things.

Show diffs side-by-side

added added

removed removed

Lines of Context:
537
537
    _reloader_environ_key = 'PYTHON_RELOADER_SHOULD_RUN'
538
538
 
539
539
    @classmethod
540
 
    def _turn_sigterm_into_systemexit(self):
 
540
    def _turn_sigterm_into_systemexit(cls):
541
541
        """
542
542
        Attempts to turn a SIGTERM exception into a SystemExit exception.
543
543
        """
551
551
        signal.signal(signal.SIGTERM, handle_term)
552
552
 
553
553
    @classmethod
554
 
    def is_installed(self):
 
554
    def is_installed(cls):
555
555
        return os.environ.get(self._reloader_environ_key)
556
556
 
557
557
    @classmethod
558
 
    def install(self):
 
558
    def install(cls):
559
559
        from paste import reloader
560
560
        reloader.install(int(1))
561
561
 
562
562
    @classmethod
563
 
    def restart_with_reloader(self):
 
563
    def restart_with_reloader(cls):
564
564
        """Based on restart_with_monitor from paste.script.serve."""
565
565
        print 'Starting subprocess with file monitor'
566
566
        while 1: