Skip to content

Commit 68c503b

Browse files
committed
[OMCSession] spelling fixes
1 parent 535ef9d commit 68c503b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

OMPython/OMCSession.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def resolve(self, strict: bool = False) -> OMPathABC:
618618

619619
def size(self) -> int:
620620
"""
621-
Get the size of the file in bytes - implementation baseon on pathlib.Path.
621+
Get the size of the file in bytes - implementation based on pathlib.Path.
622622
"""
623623
if not self.is_file():
624624
raise OMCSessionException(f"Path {self.as_posix()} is not a file!")
@@ -776,7 +776,7 @@ def resolve(self, strict: bool = False) -> OMPathABC:
776776

777777
def size(self) -> int:
778778
"""
779-
Get the size of the file in bytes - implementation baseon on pathlib.Path.
779+
Get the size of the file in bytes - implementation based on pathlib.Path.
780780
"""
781781
if not self.is_file():
782782
raise OMCSessionException(f"Path {self.as_posix()} is not a file!")
@@ -790,7 +790,7 @@ def size(self) -> int:
790790
try:
791791
return int(stdout)
792792
except ValueError as exc:
793-
raise OSError(f"Invalid return value for filesize ({self.as_posix()}): {stdout}") from exc
793+
raise OSError(f"Invalid return value for file size ({self.as_posix()}): {stdout}") from exc
794794
else:
795795
raise OSError(f"Cannot get size for file {self.as_posix()}")
796796

@@ -1259,7 +1259,7 @@ def sendExpression(self, expr: str, parsed: bool = True) -> Any:
12591259
"""
12601260
Send an expression to the OMC server and return the result.
12611261
1262-
The complete error handling of the OMC result is done within this method using '"getMessagesStringInternal()'.
1262+
The complete error handling of the OMC result is done within this method using 'getMessagesStringInternal()'.
12631263
Caller should only check for OMCSessionException.
12641264
"""
12651265

0 commit comments

Comments
 (0)