Skip to content

Commit

Permalink
added underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
wimo7083 authored and togakangaroo committed Sep 21, 2018
1 parent 7ff50c5 commit 9c98db3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions generator/raw_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ class TechTerms:
TERM_URL = 'https://raw.githubusercontent.com/togakangaroo/tech-terms/master/terms.org'

def __init__(self):
self.terms = self.parse_ank_raw_from_source()
self.terms = self._parse_ank_raw_from_source()

def _parse_ank_raw_from_source(self) -> Dict[str, list]:
two_col_org_row: Pattern[str] = self.compile_regex_from_parts()
two_col_org_row: Pattern[str] = self._compile_regex_from_parts()

content = self.grab_data_from_github()
content = self._grab_data_from_github()

lines: List[str] = content.splitlines()

return {x['term']: x['definition'] for x in self.filter_matches(lines, two_col_org_row)}
return {x['term']: x['definition'] for x in self._filter_matches(lines, two_col_org_row)}

def _grab_data_from_github(self) -> str:
r = requests.get(self.TERM_URL)
Expand Down

0 comments on commit 9c98db3

Please sign in to comment.