Sisyphus repository
Last update: 10 april 2021 | SRPMs: 17882 | Visits: 20681541
en ru br
ALT Linux repos
S:0.2.1-alt1

Group :: Development/Python
RPM: python3-module-patiencediff

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: python3-module-patiencediff-0.2.1-alt1.patch
Download


 README.rst                       | 2 +-
 patiencediff/__main__.py         | 4 +---
 patiencediff/_patiencediff_py.py | 1 -
 3 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/README.rst b/README.rst
index 14e10d3..abb68f5 100644
--- a/README.rst
+++ b/README.rst
@@ -1,7 +1,7 @@
 This package contains the implementation of the ``patiencediff`` algorithm, as
 `first described <https://bramcohen.livejournal.com/73318.html>`_ by Bram Cohen.
 
-Like Python's ``difflib``, this module provides both a convience ``unified_diff``
+Like Python's ``difflib``, this module provides both a convenience ``unified_diff``
 function for the generation of unified diffs of text files
 as well as a SequenceMatcher that can be used on arbitrary lists.
 
diff --git a/patiencediff/__main__.py b/patiencediff/__main__.py
index 2739b1f..100bb8f 100644
--- a/patiencediff/__main__.py
+++ b/patiencediff/__main__.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 # Copyright (C) 2005, 2006, 2007 Canonical Ltd
 #
 # This program is free software; you can redistribute it and/or modify
@@ -49,5 +48,4 @@ def main(args):
         sys.stdout.write(line)
 
 
-if __name__ == '__main__':
-    sys.exit(main(sys.argv[1:]))
+sys.exit(main(sys.argv[1:]))
diff --git a/patiencediff/_patiencediff_py.py b/patiencediff/_patiencediff_py.py
index 64210a1..b2fbc2c 100644
--- a/patiencediff/_patiencediff_py.py
+++ b/patiencediff/_patiencediff_py.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
 # Copyright (C) 2005 Bram Cohen, Copyright (C) 2005, 2006 Canonical Ltd
 #
 # This program is free software; you can redistribute it and/or modify
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin