SHARE
    TWEET
    Krenair

    Untitled

    Aug 15th, 2013
    151
    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. for row in open('conf/server.srg').read().splitlines():
    11. try:
    12. memberType, notchName, name = row.split(' ')
    13. if memberType == 'CL:':
    14. serverMap[notchName] = name
    15. except:
    16. break
    17. for notch, name in clientMap.items():
    18. if notch in serverMap.keys() and serverMap[notch] != clientMap[notch]:
    19. print notch
    20. print 'Client:', clientMap[notch]
    21. print 'Server:', serverMap[notch]
    22. print '-----'
    23. for notch, name in serverMap.items():
    24. if notch in clientMap.keys() and serverMap[notch] != clientMap[notch]:
    25. print notch
    26. print 'Client:', clientMap[notch]
    27. print 'Server:', serverMap[notch]
    28. print '-----'
    Advertisement
    Add Comment
    Please, Sign In to add comment
    Public Pastes
    We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
    Not a member of Pastebin yet?
    Sign Up, it unlocks many cool features!

    AltStyle によって変換されたページ (->オリジナル) /