import os

from base import BaseHandler

class RestartHandler(BaseHandler):
  def get(self):
    if not self.authenticate(superuser=True):
      return

    os.system('touch ' + self.application.settings["restart_path"])
    self.redirect(self.get_argument("next"))

[((10, 4, 10, 67), 'os.system', 'os.system', ({(10, 14, 10, 66): "('touch ' + self.application.settings['restart_path'])"}, {}), "('touch ' + self.application.settings['restart_path'])", False, 'import os\n')]