Skip to content

Commit

Permalink
Remove double underscore from __parse_speeches method and calls
Browse files Browse the repository at this point in the history
  • Loading branch information
jtemporal committed Jul 20, 2017
1 parent c4bf441 commit cbdfa5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions serenata_toolbox/chamber_of_deputies/speeches_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def fetch(self, range_start, range_end):
xml = urllib.request.urlopen(url)

tree = ET.ElementTree(file=xml)
records = self.__parse_speeches(tree.getroot())
records = self._parse_speeches(tree.getroot())

return pd.DataFrame(records, columns=[
'session_code',
Expand All @@ -52,7 +52,7 @@ def fetch(self, range_start, range_end):
'speech_insertion_num'
])

def __parse_speeches(self, root):
def _parse_speeches(self, root):
for session in root:
session_code = xml_extract_text(session, 'codigo')
session_date = xml_extract_date(session, 'data')
Expand Down

0 comments on commit cbdfa5a

Please sign in to comment.