e4fe9dbfde656b1ca0ede53706de8589a66cfe7d cline Tue Jul 26 17:42:20 2011 -0700 Changed the include structure to be consistent with Morgan's new library structure diff --git src/hg/encode/antibodyWikiParser.py src/hg/encode/antibodyWikiParser.py index ec1c51e..145d608 100755 --- src/hg/encode/antibodyWikiParser.py +++ src/hg/encode/antibodyWikiParser.py @@ -3,31 +3,31 @@ # # antibodyWikiParser.py: parse any to-be-registered antibodies from the wiki, # and download any newly-approved validation documents. # import base64 from BeautifulSoup import BeautifulSoup import HTMLParser from optparse import OptionParser import re import shlex import string import subprocess import sys import urllib2 -from ucscgenomics.rafile.RaFile import * +from rafile.RaFile import * def stripLeadingTrailingWhitespace(text): """Given a string, remove any leading or trailing whitespace""" text = re.sub("^([" + string.whitespace + "])+", "", text) text = re.sub("([" + string.whitespace + "])+$", "", text) return(text) def getContents(field): """Given an HTML field, return the contents""" contents = stripLeadingTrailingWhitespace(field.contents[0]) if len(contents) == 0: contents = "missing" return(contents)