Skip to content

Commit

Permalink
Merge pull request #84 from atcoder/patch/expander
Browse files Browse the repository at this point in the history
remove local include function
  • Loading branch information
yosupo06 authored Dec 14, 2020
2 parents 25e0f6c + 1f77d98 commit 6c72ff3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions expander.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@


class Expander:
local_include = re.compile(
r'#include\s*"([a-z_]*(|.hpp))"\s*')
atcoder_include = re.compile(
r'#include\s*["<](atcoder/[a-z_]*(|.hpp))[">]\s*')

Expand Down Expand Up @@ -61,15 +59,8 @@ def expand_acl(self, acl_file_path: Path) -> List[str]:
name = m.group(1)
result.extend(self.expand_acl(self.find_acl(name)))
continue

m = self.local_include.match(line)
if m:
name = m.group(1)
result.extend(self.expand_acl(acl_file_path.parent / name))
continue

result.append(line)

return result

def expand(self, source: str) -> str:
Expand Down

0 comments on commit 6c72ff3

Please sign in to comment.