From cf3a867872cae5caaf7104476cf948c6abedb67f Mon Sep 17 00:00:00 2001 From: yuhui_inspur Date: Fri, 10 Mar 2017 00:20:08 -0800 Subject: [PATCH] Fix a few typos Fix a few typos. Change-Id: I90678653d14afb0c21b7ca3f973ce8b417b22add --- trove/common/utils.py | 2 +- trove/tests/util/event_simulator.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/trove/common/utils.py b/trove/common/utils.py index d846b97b53..449c443663 100644 --- a/trove/common/utils.py +++ b/trove/common/utils.py @@ -123,7 +123,7 @@ class cached_property(object): Taken from : https://github.com/nshah/python-memoize The function wrapped is called the first time to retrieve the result - and than that calculated result is used the next time you access + and then that calculated result is used the next time you access the value: class Foo(object): diff --git a/trove/tests/util/event_simulator.py b/trove/tests/util/event_simulator.py index 0458b51af8..d21254de04 100644 --- a/trove/tests/util/event_simulator.py +++ b/trove/tests/util/event_simulator.py @@ -29,12 +29,12 @@ Event Simulator Overview ======================== We use this to simulate all the threads of Trove running. -i.e (api,taskmanager,probocsis tests) All the services end +i.e. (api,taskmanager,proboscis tests). All the services end up sleeping and having to wait for something to happen at times. Monkey Patching Methods ----------------------- -We monkey patch a few method to make this happen. +We monkey patch a few methods to make this happen. A few sleep methods with a fake_sleep. * time.sleep