[Python-modules-commits] [python3-proselint] 02/03: merge patched into master

Víctor Cuadrado Juan viccuad-guest at moszumanska.debian.org
Wed Jun 29 12:15:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

viccuad-guest pushed a commit to branch master
in repository python3-proselint.

commit 6a463640a55e1e939286bae25bd0b99577ef0a59
Merge: 96a1cf5 ea7e074
Author: Víctor Cuadrado Juan <me at viccuad.me>
Date:   Wed Jun 29 14:09:45 2016 +0200

    merge patched into master

 debian/.git-dpm                                    |  4 ++--
 ...02-Make-proselint-work-on-read-only-files.patch | 25 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 proselint/command_line.py                          |  2 +-
 4 files changed, 29 insertions(+), 3 deletions(-)

diff --cc debian/.git-dpm
index a36afed,0000000..09e20c6
mode 100644,000000..100644
--- a/debian/.git-dpm
+++ b/debian/.git-dpm
@@@ -1,8 -1,0 +1,8 @@@
 +# see git-dpm(1) from git-dpm package
- ac711e75abfd4f737aa95086803ae1296b8f3343
- ac711e75abfd4f737aa95086803ae1296b8f3343
++ea7e07400ae1888c69fda178c815fb6a1b83ce7a
++ea7e07400ae1888c69fda178c815fb6a1b83ce7a
 +ba0c1d24e6988f0cb17057e0514dcb4298043363
 +ba0c1d24e6988f0cb17057e0514dcb4298043363
 +python3-proselint_0.5.3.orig.tar.gz
 +0894408a070a9a6a1b2f3319ec442a440a36ad04
 +68983
diff --cc debian/patches/0002-Make-proselint-work-on-read-only-files.patch
index 0000000,0000000..7dbc4b2
new file mode 100644
--- /dev/null
+++ b/debian/patches/0002-Make-proselint-work-on-read-only-files.patch
@@@ -1,0 -1,0 +1,25 @@@
++From ea7e07400ae1888c69fda178c815fb6a1b83ce7a Mon Sep 17 00:00:00 2001
++From: =?UTF-8?q?V=C3=ADctor=20Cuadrado=20Juan?= <me at viccuad.me>
++Date: Wed, 29 Jun 2016 14:09:15 +0200
++Subject: Make proselint work on read-only files
++
++Open files as read-only instead of read/write, to make Proselint
++work with read-only files (such as the provided demo.md, installed
++in dist-packages).
++---
++ proselint/command_line.py | 2 +-
++ 1 file changed, 1 insertion(+), 1 deletion(-)
++
++diff --git a/proselint/command_line.py b/proselint/command_line.py
++index 911af52..8029eaa 100644
++--- a/proselint/command_line.py
+++++ b/proselint/command_line.py
++@@ -189,7 +189,7 @@ def proselint(paths=None, version=None, initialize=None, clean=None,
++     num_errors = 0
++     for fp in filepaths:
++         try:
++-            f = click.open_file(fp, 'r+', encoding="utf-8")
+++            f = click.open_file(fp, 'r', encoding="utf-8")
++             errors = lint(f, debug=debug)
++             num_errors += len(errors)
++             show_errors(fp, errors, output_json, compact=compact)
diff --cc debian/patches/series
index feac9df,0000000..7f82830
mode 100644,000000..100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@@ -1,1 -1,0 +1,2 @@@
 +0001-Remove-debug-clearcache-functionality.patch
++0002-Make-proselint-work-on-read-only-files.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python3-proselint.git



More information about the Python-modules-commits mailing list