[diffoscope] 01/02: Inline @tool_required comment as a doctring.
Chris Lamb
chris at chris-lamb.co.uk
Wed Dec 7 15:14:03 CET 2016
This is an automated email from the git hooks/post-receive script.
lamby pushed a commit to branch master
in repository diffoscope.
commit cf2bf2a425064140d2ca78536ef72604c8ea3708
Author: Chris Lamb <lamby at debian.org>
Date: Wed Dec 7 14:09:44 2016 +0000
Inline @tool_required comment as a doctring.
Signed-off-by: Chris Lamb <lamby at debian.org>
---
diffoscope/__init__.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/diffoscope/__init__.py b/diffoscope/__init__.py
index 6df405d..bb27260 100644
--- a/diffoscope/__init__.py
+++ b/diffoscope/__init__.py
@@ -52,8 +52,10 @@ def get_current_os():
return system
-# decorator that checks if the specified tool is installed
def tool_required(command):
+ """
+ Decorator that checks if the specified tool is installed
+ """
if not hasattr(tool_required, 'all'):
tool_required.all = set()
tool_required.all.add(command)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the diffoscope
mailing list