From ca3a3cd8ae193a7c252d519d2dd53dd607f8bc36 Mon Sep 17 00:00:00 2001 From: Joshua Harlow Date: Sat, 6 Jun 2015 19:06:24 -0700 Subject: [PATCH] Put runtimeerror in block quotes --- fasteners/lock.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fasteners/lock.py b/fasteners/lock.py index eda8935..a5da5b2 100644 --- a/fasteners/lock.py +++ b/fasteners/lock.py @@ -175,7 +175,7 @@ class ReaderWriterLock(object): Will wait until no active or pending writers. - Raises a RuntimeError if a pending writer tries to acquire + Raises a ``RuntimeError`` if a pending writer tries to acquire a read lock. """ me = self._current_thread() @@ -209,7 +209,8 @@ class ReaderWriterLock(object): Will wait until no active readers. Blocks readers after acquiring. - Raises a RuntimeError if an active reader attempts to acquire a lock. + Raises a ``RuntimeError`` if an active reader attempts to acquire + a lock. """ me = self._current_thread() if self.is_reader():