mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
health: Clean up imports / dead code.
This commit is contained in:
@@ -20,32 +20,25 @@
|
||||
# Inc. All Rights Reserved.
|
||||
###############################################################################
|
||||
|
||||
from threading import Thread
|
||||
import os
|
||||
import time
|
||||
import json
|
||||
|
||||
from pylons.controllers.util import abort
|
||||
from pylons import c, g, response
|
||||
from pylons import g, response
|
||||
|
||||
from reddit_base import MinimalController
|
||||
from r2.lib.amqp import worker
|
||||
from r2.lib.validator import *
|
||||
from r2.controllers.reddit_base import MinimalController
|
||||
from r2.lib import promote
|
||||
|
||||
|
||||
class HealthController(MinimalController):
|
||||
def post(self):
|
||||
pass
|
||||
|
||||
def try_pagecache(self):
|
||||
pass
|
||||
|
||||
def pre(self):
|
||||
pass
|
||||
|
||||
def post(self):
|
||||
pass
|
||||
|
||||
def GET_health(self):
|
||||
c.dontcache = True
|
||||
response.headers['Content-Type'] = 'text/plain'
|
||||
return json.dumps(g.versions, sort_keys=True, indent=4)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user