12
12
from pandas .compat import (
13
13
binary_type , iteritems , lmap , lrange , raise_with_traceback , string_types ,
14
14
u )
15
- from pandas .errors import EmptyDataError
15
+ from pandas .errors import AbstractMethodError , EmptyDataError
16
16
17
17
from pandas .core .dtypes .common import is_list_like
18
18
19
19
from pandas import Series
20
- import pandas .core .common as com
21
20
22
21
from pandas .io .common import _is_url , _validate_header_arg , urlopen
23
22
from pandas .io .formats .printing import pprint_thing
@@ -256,7 +255,7 @@ def _text_getter(self, obj):
256
255
text : str or unicode
257
256
The text from an individual DOM node.
258
257
"""
259
- raise com . AbstractMethodError (self )
258
+ raise AbstractMethodError (self )
260
259
261
260
def _parse_td (self , obj ):
262
261
"""Return the td elements from a row element.
@@ -271,7 +270,7 @@ def _parse_td(self, obj):
271
270
list of node-like
272
271
These are the elements of each row, i.e., the columns.
273
272
"""
274
- raise com . AbstractMethodError (self )
273
+ raise AbstractMethodError (self )
275
274
276
275
def _parse_thead_tr (self , table ):
277
276
"""
@@ -286,7 +285,7 @@ def _parse_thead_tr(self, table):
286
285
list of node-like
287
286
These are the <tr> row elements of a table.
288
287
"""
289
- raise com . AbstractMethodError (self )
288
+ raise AbstractMethodError (self )
290
289
291
290
def _parse_tbody_tr (self , table ):
292
291
"""
@@ -305,7 +304,7 @@ def _parse_tbody_tr(self, table):
305
304
list of node-like
306
305
These are the <tr> row elements of a table.
307
306
"""
308
- raise com . AbstractMethodError (self )
307
+ raise AbstractMethodError (self )
309
308
310
309
def _parse_tfoot_tr (self , table ):
311
310
"""
@@ -320,7 +319,7 @@ def _parse_tfoot_tr(self, table):
320
319
list of node-like
321
320
These are the <tr> row elements of a table.
322
321
"""
323
- raise com . AbstractMethodError (self )
322
+ raise AbstractMethodError (self )
324
323
325
324
def _parse_tables (self , doc , match , attrs ):
326
325
"""
@@ -346,7 +345,7 @@ def _parse_tables(self, doc, match, attrs):
346
345
list of node-like
347
346
HTML <table> elements to be parsed into raw data.
348
347
"""
349
- raise com . AbstractMethodError (self )
348
+ raise AbstractMethodError (self )
350
349
351
350
def _equals_tag (self , obj , tag ):
352
351
"""
@@ -365,7 +364,7 @@ def _equals_tag(self, obj, tag):
365
364
boolean
366
365
Whether `obj`'s tag name is `tag`
367
366
"""
368
- raise com . AbstractMethodError (self )
367
+ raise AbstractMethodError (self )
369
368
370
369
def _build_doc (self ):
371
370
"""
@@ -376,7 +375,7 @@ def _build_doc(self):
376
375
node-like
377
376
The DOM from which to parse the table element.
378
377
"""
379
- raise com . AbstractMethodError (self )
378
+ raise AbstractMethodError (self )
380
379
381
380
def _parse_thead_tbody_tfoot (self , table_html ):
382
381
"""
0 commit comments