[geneagrapher] 154/226: Removed Grabber.unescape as it is no longer used.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:10:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository geneagrapher.

commit e46a48f1b38f10082134f9055fb704f6d4791edc
Author: David Alber <alber.david at gmail.com>
Date:   Sun Oct 30 21:18:32 2011 -0700

    Removed Grabber.unescape as it is no longer used.
---
 geneagrapher/grabber.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/geneagrapher/grabber.py b/geneagrapher/grabber.py
index 06cf1b5..f8b11eb 100644
--- a/geneagrapher/grabber.py
+++ b/geneagrapher/grabber.py
@@ -1,6 +1,5 @@
 import urllib
 import re
-from htmlentitydefs import name2codepoint
 from BeautifulSoup import BeautifulSoup
 
 class Grabber:
@@ -16,11 +15,6 @@ class Grabber:
         self.advisors = []
         self.descendants = []
 
-    @staticmethod
-    def unescape(s):
-        return re.sub('&(%s);' % '|'.join(name2codepoint),\
-                      lambda m: unichr(name2codepoint[m.group(1)]), s)
-
     def get_page(self):
         """
         Grab the page for self.id from the Math Genealogy Database.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/geneagrapher.git



More information about the debian-science-commits mailing list