Skip to content

Commit

Permalink
Make Reformatter.filename always use forward slashes as path separator.
Browse files Browse the repository at this point in the history
  • Loading branch information
domdfcoding committed Jan 25, 2021
1 parent 4aac913 commit 8b894ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formate/__init__.py
Expand Up @@ -163,7 +163,7 @@ class Reformatter:

def __init__(self, filename: PathLike, config: FormateConfigDict):
self.file_to_format = PathPlus(filename)
self.filename = filename.as_posix()
self.filename = self.file_to_format.as_posix()
self.config = config
self._unformatted_source = self.file_to_format.read_text()
self._reformatted_source: Optional[str] = None
Expand Down

0 comments on commit 8b894ef

Please sign in to comment.