format patches

This commit is contained in:
openKylinBot 2022-05-14 02:47:50 +08:00
parent 3909b840d0
commit 3f174b45b1
1 changed files with 14 additions and 21 deletions

View File

@ -1,15 +1,20 @@
Description: Make doctest examples compatible with Python 2 and Python 3.
.
Existing doctests were written only for Python 2 and have not yet
been updated upstream to work with Python 3.
Author: Ben Finney <bignose@debian.org>
From: Ben Finney <bignose@debian.org>
Date: Sat, 14 May 2022 02:47:49 +0800
Subject: Make doctest examples compatible with Python 2 and Python 3.
Existing doctests were written only for Python 2 and have not yet
been updated upstream to work with Python 3.
Last-Update: 2015-05-16
---
doc/source/index.rst | 6 +++---
lockfile/__init__.py | 16 ++++++++--------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/doc/source/index.rst b/doc/source/index.rst
index f76173d..b4bfd4d 100644
index 5f1f2dd..ac1ba50 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -224,14 +224,14 @@ This example is the "hello world" for the :mod:`lockfile` package::
@@ -231,14 +231,14 @@ This example is the "hello world" for the :mod:`lockfile` package::
from lockfile import LockFile
lock = LockFile("/some/file/or/other")
with lock:
@ -26,7 +31,7 @@ index f76173d..b4bfd4d 100644
lock.release()
If you don't want to wait forever, you might try::
@@ -244,7 +244,7 @@ If you don't want to wait forever, you might try::
@@ -251,7 +251,7 @@ If you don't want to wait forever, you might try::
except LockTimeout:
lock.break_lock()
lock.acquire()
@ -36,7 +41,7 @@ index f76173d..b4bfd4d 100644
You can also insure that a lock is always held when appropriately decorated
diff --git a/lockfile/__init__.py b/lockfile/__init__.py
index 419d122..339a205 100644
index a6f44a5..d4b1436 100644
--- a/lockfile/__init__.py
+++ b/lockfile/__init__.py
@@ -12,23 +12,23 @@ Usage:
@ -79,15 +84,3 @@ index 419d122..339a205 100644
False
Exceptions:
Local variables:
coding: utf-8
mode: diff
time-stamp-format: "%:y-%02m-%02d"
time-stamp-start: "^Last-Update:[ ]+"
time-stamp-end: "$"
time-stamp-line-limit: 20
End:
vim: fileencoding=utf-8 filetype=diff :