Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
import sys, lxml.etree as et
def purge_plugin( tree, id ):
print ':: Searching for %s Entries..' % id
targets = tree.findall( '//ReportItem[@pluginID="%s"]' % id )
print ' Found %s entries.' % len( targets )
print ':: Excising %s entries..' % id
def getch_unix( ):
old_settings = termios.tcgetattr( sys.stdin )
try:
tty.setraw( sys.stdin )
ch = sys.stdin.read( 1 )
finally:
termios.tcsetattr( sys.stdin, termios.TCSADRAIN, old_settings)
return ch
try:
::: Misc :::
Coat of Arms
Darksteel Colossus
Gargoyle Castle
Gorgon Flail
Howling Mine
Magebane Armor
Mirror of Fate
Pithing Needle