From f65ae4dc56e9fbf0285826be705b70efb85f5fa6 Mon Sep 17 00:00:00 2001 From: Eddie Bergman Date: Mon, 15 Aug 2022 09:25:28 +0200 Subject: [PATCH] Fix typos in readme --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 89f2914b..1bf2ef84 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ function. The methods for limiting specific resources can be found within the re `pynisher/limiters/.py`. #### Features -To check what if a feature is supported on your system: +To check if a feature is supported on your system: ```python from pynisher import limit @@ -246,7 +246,7 @@ forceful_keyboard_interrupt: bool = True #### Exceptions Pynisher will let all subprocess `Exceptions` buble up to the controlling process. -If a subprocess exceeds a limit one of `CpuTimeoutException`, `WallTimeoutException` or `MemoryLimitException` are raised, but you can use their base classes to cover them more generally. +If a subprocess exceeds a limit, one of `CpuTimeoutException`, `WallTimeoutException` or `MemoryLimitException` are raised, but you can use their base classes to cover them more generally. ```python class PynisherException(Exception): ... @@ -308,7 +308,7 @@ check for output `output = f(...)`. This will be `None` if an error was raised a Pynisher no longer times your function for you with `self.wall_clock_time`. If you need to measure the duration it ran, please do so outside of `Pynisher`. -The exceptions were also changed, please see [Exceptions][#Exceptions] +The exceptions were also changed, please see [Exceptions](#Exceptions) ## Controlling namespace pollution As an advanced use case, sometimes you might want to keep the modules imported for your @@ -329,7 +329,7 @@ def import_sklearn() -> None: raise NotFittedError(SVR()) -if __name__ == "__main__" +if __name__ == "__main__": # Wrapping all errors lf = limit(import_sklearn, wrap_errors=True) try: