Skip to content

Commit

Permalink
deprecate getname and debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Oct 2, 2023
1 parent 4e3f9cb commit 8aea14f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Cleanup the `README.md` a bit

### Deprecated

- Deprecate `File.getName`
- The method itself doesn't make sense, instead operate on `File.filepath` directly
- Deprecate `MapFile.debugging`
- Deprecate `progress` frontend's `--debugging` flag

## [2.1.4] - 2023-09-11

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions src/mapfile_parser/mapfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def serializeVrom(self, humanReadable: bool=True) -> str|int|None:
return self.vrom


#! @deprecated
def getName(self) -> Path:
return Path(*self.filepath.with_suffix("").parts[2:])

Expand Down Expand Up @@ -445,6 +446,8 @@ def __hash__(self):
class MapFile:
def __init__(self):
self._segmentsList: list[Segment] = list()

#! @deprecated
self.debugging: bool = False

def readMapFile(self, mapPath: Path):
Expand Down

0 comments on commit 8aea14f

Please sign in to comment.