Krenair

Untitled

Aug 15th, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.95 KB | None | 0 0
  1. clientMap = {}
  2. serverMap = {}
  3. for row in open('conf/client.srg').read().splitlines():
  4.     try:
  5.         memberType, notchName, name = row.split(' ')
  6.         if memberType == 'CL:':
  7.             clientMap[notchName] = name
  8.     except:
  9.         break
  10.  
  11. for row in open('conf/server.srg').read().splitlines():
  12.     try:
  13.         memberType, notchName, name = row.split(' ')
  14.         if memberType == 'CL:':
  15.             serverMap[notchName] = name
  16.     except:
  17.         break
  18.  
  19. for notch, name in clientMap.items():
  20.     if notch in serverMap.keys() and serverMap[notch] != clientMap[notch]:
  21.         print notch
  22.         print 'Client:', clientMap[notch]
  23.         print 'Server:', serverMap[notch]
  24.         print '-----'
  25.  
  26. for notch, name in serverMap.items():
  27.     if notch in clientMap.keys() and serverMap[notch] != clientMap[notch]:
  28.         print notch
  29.         print 'Client:', clientMap[notch]
  30.         print 'Server:', serverMap[notch]
  31.         print '-----'
Advertisement
Add Comment
Please, Sign In to add comment