old_contents: #!/usr/bin/python
  #-*- coding:utf-8 -*-
  
  class Process(object):
  <<<<<<< Updated upstream
      '''memcached rc script'''
      def __init__(self, name, program, args,workdir):
          self.name = name
          self.program = program
          self.args = args
          self.workdir = workdir
  
      def __init(self):
          pass
  
      def start(self):
          pass
  
      def stop(self):
          pass
  
      def restart(self):
          self.stop()
          self.start()
  
  
      def status(self):
          pass
  
      def help(self):
          pass
  
  
  def main():
      # 4 factors
      name = 'memcached'
      prog = '/usr/bin/memcached'
      args = '-u nobody -p 11211 -c 1024 -m 64'
      wd = '/var/tmp/memcached'
  
      pm = Process(name=namem, program = prog, args = args, workdir = wd)
  
      try:
          cmd = sys.argv[1]
      except IndexError, e:
          print "Option E"
          sys.exit()
  
      if cmd == 'start':
          pm.start()
      elif cmd == 'stop':
          pm.stop()
      elif cmd == 'restart':
          pm.restart()
      elif cmd == 'status':
          pm.status()
      else:
          pm.help()
  
  
  if __name__ == '__main__':
      main()
  =======
  	name = 'Test'
  
  	def __init__(self,name, program, args, workdir):
  		self.name = name
  		self.program = program
  		self.args = args
  		self.workdir = workdir
  
  	def start(self):
  
  	def stop(self):
  
  
  	def restart(self):
  		self.stop()
  		self.start()
  
  	def status(self):
  
  	def help(self):
  		# print ""
  
  def main():
  	name = 'memcached'
  	proc = '/usr/bin/memcached'
  	args = '-u nobody -p 11211 -c 1024 -m 64'
  	wd = '/var/tmp/memcached'
  	pm = Process(name = name, program = proc, args = args, workdir = wd)
  	try:
  		cmd = sys.argv[1]
  	except IndexError, e:
  		print "Option Error"
  		sys.exit()
  
  	if cmd == 'start':
  		pm.start()
  	elif cmd == 'stop':
  		pm.stop()
  	elif cmd == 'restart':
  		pm.restart()
  	elif cmd == 'status':
  		pm.status()
  	else:
  		pm.help()
  
  
  
  if __name__ == '__main__':
  	main()
  >>>>>>> Stashed changes
  
new_contents: #!/usr/bin/python
  #-*- coding:utf-8 -*-
  
  import sys
  class Process(object):
      '''memcached rc script'''
      def __init__(self, name, program, args, workdir):
          self.name = name
          self.program = program
          self.args = args
          sele.workdir = workdir
  
      # Normal Function
      def _init(self):
          pass
      def start(self):
          pass
      def stop(self):
          pass
      def restart(self):
          self.stop()
          self.start()
      def status(self):
          pass
  
  def main():
      try:
          cmd = sys.argv[1]
      except IndexError, e:
          print "Option Error"
          sys.exit()
  
subject: rewrite the rc.py