From 8a063e4c96adc1fdd94317c8adc72a8d5102eee5 Mon Sep 17 00:00:00 2001 From: Mike Shultz Date: Tue, 19 Mar 2024 14:39:26 -0600 Subject: [PATCH] refactor: splitlines Co-authored-by: antazoey --- ape_vyper/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ape_vyper/compiler.py b/ape_vyper/compiler.py index 5cd6ed52..49f37da6 100644 --- a/ape_vyper/compiler.py +++ b/ape_vyper/compiler.py @@ -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