Skip to content

Commit

Permalink
refactor: splitlines
Browse files Browse the repository at this point in the history
Co-authored-by: antazoey <[email protected]>
  • Loading branch information
mikeshultz and antazoey authored Mar 19, 2024
1 parent b382eef commit 8a063e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ape_vyper/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ def flatten_contract(self, path: Path, base_path: Optional[Path] = None) -> Cont
Returns the flattened contract suitable for compilation or verification as a single file
"""
source = self._flatten_source(path, base_path, path.name)
return Content({i: ln for i, ln in enumerate(source.split("\n"))})
return Content({i: ln for i, ln in enumerate(source.splitlines())})

def get_version_map(
self, contract_filepaths: Sequence[Path], base_path: Optional[Path] = None
Expand Down

0 comments on commit 8a063e4

Please sign in to comment.