Browse files

we're not perfect... right?

  • Loading branch information...
1 parent fd2808e commit e33814fa852d5b8fbd72447dfc82494a9ed5f463 @jrabbit committed Jan 14, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 hitman.py
View
7 hitman.py
@@ -155,6 +155,13 @@ def del_feed(name):
feeds.close()
+def del_alias(alias):
+ """sometimes you goof up."""
+ db = anydbm.open(os.path.join(directory(), 'aliases'), 'c')
+ print "removing alias of %s to %s" % alias, db.pop(alias)
+ db.close()
+
+
def alias_feed(name, alias):
"""write aliases to db"""
db = anydbm.open(os.path.join(directory(), 'aliases'), 'c')

0 comments on commit e33814f

Please sign in to comment.