old_contents: #!/usr/bin/env python 
  
  """ 
  A simple echo client 
  """ 
  
  from login import LoginController
  
  def main():
  	login = LoginController()
  	print login.USERNAME
  
  # import socket 
  
  # host = '' 
  # port = 65535 
  # size = 1024 
  # s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 
  # s.connect((host,port)) 
  # while 1:
  # 	inp = raw_input('Enter:')
  # 	s.send(inp) 
  # 	data = s.recv(size) 
  # 	if inp == 'BYE':
  # 		s.close()
  # 		break
  	
  # 	print 'Received:', data
  
  if __name__ == '__main__':
  	main()
  
new_contents: #!/usr/bin/env python 
  
  """ 
  A simple echo client 
  """ 
  
  from login import LoginController
  
  def main():
  	checkDirectory()
  	login = LoginController()
  	print login.USERNAME
  
  
  #method to check if directory is a git repo
  def checkDirectory():
  	try:
  		open('.git/config')
  	except IOError:
  		raise SystemExit('Not a git repo')
  
  # import socket 
  
  # host = '' 
  # port = 65535 
  # size = 1024 
  # s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) 
  # s.connect((host,port)) 
  # while 1:
  # 	inp = raw_input('Enter:')
  # 	s.send(inp) 
  # 	data = s.recv(size) 
  # 	if inp == 'BYE':
  # 		s.close()
  # 		break
  	
  # 	print 'Received:', data
  
  if __name__ == '__main__':
  	main()
  
subject: Check directory is git repo