Project

General

Profile

« Previous | Next » 

Revision 9519

lib/tnrs.py: tnrs_request(): renamed to single_tnrs_request() to distinguish it from repeated_tnrs_request()

View differences:

tnrs.py
109 109
            +response)
110 110
    return match.groups()
111 111

  
112
def tnrs_request(names, debug=False):
112
def single_tnrs_request(names, debug=False):
113 113
    '''
114 114
    Note that names containing only whitespace characters (after gwt_encode())
115 115
    are ignored by TNRS and do not receive a response row. Thus, you should
......
192 192

  
193 193
def repeated_tnrs_request(names, debug=False, **kw_args):
194 194
    for try_num in xrange(2):
195
        try: return tnrs_request(names, debug, **kw_args)
195
        try: return single_tnrs_request(names, debug, **kw_args)
196 196
        except (urllib2.HTTPError, InvalidResponse), e:
197 197
            exc.print_ex(e, detail=False)
198 198
            debug = True

Also available in: Unified diff