Skip to content

Commit 3802b05

Browse files
committed
fix spelling errors
1 parent e916620 commit 3802b05

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

OMPython/OMC/omc_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def sendExpression(self, expr: str, parsed: bool = True) -> Any:
286286
"""
287287
Send an expression to the OMC server and return the result.
288288
289-
The complete error handling of the OMC result is done within this method using '"getMessagesStringInternal()'.
289+
The complete error handling of the OMC result is done within this method using 'getMessagesStringInternal()'.
290290
Caller should only check for OMCSessionException.
291291
"""
292292

OMPython/Runner/om_path_runner.py

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

9191
def size(self) -> int:
9292
"""
93-
Get the size of the file in bytes - implementation baseon on pathlib.Path.
93+
Get the size of the file in bytes - implementation based on pathlib.Path.
9494
"""
9595
if not self.is_file():
9696
raise OMSessionException(f"Path {self.as_posix()} is not a file!")
@@ -249,7 +249,7 @@ def resolve(self, strict: bool = False) -> OMPathABC:
249249

250250
def size(self) -> int:
251251
"""
252-
Get the size of the file in bytes - implementation baseon on pathlib.Path.
252+
Get the size of the file in bytes - implementation based on pathlib.Path.
253253
"""
254254
if not self.is_file():
255255
raise OMSessionException(f"Path {self.as_posix()} is not a file!")
@@ -263,6 +263,6 @@ def size(self) -> int:
263263
try:
264264
return int(stdout)
265265
except ValueError as exc:
266-
raise OSError(f"Invalid return value for filesize ({self.as_posix()}): {stdout}") from exc
266+
raise OSError(f"Invalid return value for file size ({self.as_posix()}): {stdout}") from exc
267267
else:
268268
raise OSError(f"Cannot get size for file {self.as_posix()}")

0 commit comments

Comments
 (0)