Debian Codegraph @

debian/patches/fix_typos

raw
1 From 5c79b9a2c3afc317b2588955ba82d12ecb8c60bd Mon Sep 17 00:00:00 2001
2 From: Simon Chopin <[email protected]>
3 Date: Tue, 30 Apr 2013 17:28:27 +0200
4 Subject: Fix several typos
5
6 Bug: https://fedorahosted.org/kitchen/ticket/8
7
8 Patch-Name: fix_typos
9 ---
10 kitchen2/docs/api-pycompat27.rst | 2 +-
11 kitchen2/docs/designing-unicode-apis.rst | 2 +-
12 kitchen2/docs/hacking.rst | 2 +-
13 kitchen2/docs/unicode-frustrations.rst | 6 +++---
14 kitchen2/kitchen/i18n/__init__.py | 6 +++---
15 kitchen2/kitchen/pycompat25/collections/_defaultdict.py | 2 +-
16 kitchen2/kitchen/text/display.py | 6 +++---
17 releaseutils.py | 2 +-
18 8 files changed, 14 insertions(+), 14 deletions(-)
19
20 Index: kitchen/kitchen2/docs/api-pycompat27.rst
21 ===================================================================
22 --- kitchen.orig/kitchen2/docs/api-pycompat27.rst 2017-08-28 00:40:52.320968774 -0400
23 +++ kitchen/kitchen2/docs/api-pycompat27.rst 2017-08-28 00:40:52.316968791 -0400
24 @@ -31,5 +31,5 @@
25
26 .. seealso::
27
28 - The stdlib :mod:`subprocess` documenation
29 + The stdlib :mod:`subprocess` documentation
30 For complete documentation on how to use subprocess
31 Index: kitchen/kitchen2/docs/designing-unicode-apis.rst
32 ===================================================================
33 --- kitchen.orig/kitchen2/docs/designing-unicode-apis.rst 2017-08-28 00:40:52.320968774 -0400
34 +++ kitchen/kitchen2/docs/designing-unicode-apis.rst 2017-08-28 00:40:52.316968791 -0400
35 @@ -581,7 +581,7 @@
36 that you may not have thought of. Corner cases in these other places may
37 mean that processing bytes is desirable.
38 2. In python2, byte :class:`str` and :class:`unicode` are often used
39 - interchangably with each other. That means that people programming against
40 + interchangeably with each other. That means that people programming against
41 your API may have received :class:`str` from some other API and it would be
42 most convenient for their code if your API accepted it.
43
44 Index: kitchen/kitchen2/docs/hacking.rst
45 ===================================================================
46 --- kitchen.orig/kitchen2/docs/hacking.rst 2017-08-28 00:40:52.320968774 -0400
47 +++ kitchen/kitchen2/docs/hacking.rst 2017-08-28 00:40:52.316968791 -0400
48 @@ -272,7 +272,7 @@
49 Criteria for subpackages in kitchen
50 ===================================
51
52 -Supackages within kitchen should meet these criteria:
53 +Subpackages within kitchen should meet these criteria:
54
55 * Generally useful or needed for other pieces of kitchen.
56
57 Index: kitchen/kitchen2/docs/unicode-frustrations.rst
58 ===================================================================
59 --- kitchen.orig/kitchen2/docs/unicode-frustrations.rst 2017-08-28 00:40:52.320968774 -0400
60 +++ kitchen/kitchen2/docs/unicode-frustrations.rst 2017-08-28 00:40:52.316968791 -0400
61 @@ -33,7 +33,7 @@
62 with byte :class:`str` as those devices are going to need to deal with
63 concrete implementations of what bytes represent your abstract characters.
64
65 -In the python2 world many APIs use these two classes interchangably but there
66 +In the python2 world many APIs use these two classes interchangeably but there
67 are several important APIs where only one or the other will do the right
68 thing. When you give the wrong type of string to an API that wants the other
69 type, you may end up with an exception being raised (:exc:`UnicodeDecodeError`
70 @@ -122,7 +122,7 @@
71
72 So that was simple, right? Well... there's one gotcha that makes things a bit
73 harder to debug sometimes. When you attempt to write non-:term:`ASCII`
74 -:class:`unicode` strings to a file-like object you get a traceback everytime.
75 +:class:`unicode` strings to a file-like object you get a traceback every time.
76 But what happens when you use :func:`print`? The terminal is a file-like object
77 so it should raise an exception right? The answer to that is....
78 *sometimes*:
79 @@ -539,7 +539,7 @@
80 # Note that we do not let implici type conversion from str to
81 # unicode transform b_filename into a unicode string. That might
82 # fail as python would use the ASCII filename. Instead we use
83 - # to_unicode() to explictly transform in a way that we know will
84 + # to_unicode() to explicitly transform in a way that we know will
85 # not traceback.
86 print _(u'filename: %s') % to_unicode(b_filename)
87 print _(u'file size: %s') % size
88 Index: kitchen/kitchen2/kitchen/i18n/__init__.py
89 ===================================================================
90 --- kitchen.orig/kitchen2/kitchen/i18n/__init__.py 2017-08-28 00:40:52.320968774 -0400
91 +++ kitchen/kitchen2/kitchen/i18n/__init__.py 2017-08-28 00:40:52.316968791 -0400
92 @@ -295,8 +295,8 @@
93 def _reencode_if_necessary(self, message, output_encoding):
94 '''Return a byte string that's valid in a specific charset.
95
96 - .. warning:: This method may mangle the message if the inpput encoding
97 - is not known or the message isn't represntable in the chosen
98 + .. warning:: This method may mangle the message if the input encoding
99 + is not known or the message isn't representable in the chosen
100 output encoding.
101 '''
102 valid = False
103 @@ -721,7 +721,7 @@
104 objects by default. These are superior to the
105 :class:`gettext.GNUTranslations` and :class:`gettext.NullTranslations`
106 objects because they are consistent in the string type they return and
107 - they fix several issues that can causethe |stdlib|_ objects to throw
108 + they fix several issues that can cause the |stdlib|_ objects to throw
109 :exc:`UnicodeError`.
110 2. This function takes multiple directories to search for
111 :term:`message catalogs`.
112 Index: kitchen/kitchen2/kitchen/pycompat25/collections/_defaultdict.py
113 ===================================================================
114 --- kitchen.orig/kitchen2/kitchen/pycompat25/collections/_defaultdict.py 2017-08-28 00:40:52.320968774 -0400
115 +++ kitchen/kitchen2/kitchen/pycompat25/collections/_defaultdict.py 2017-08-28 00:40:52.316968791 -0400
116 @@ -73,7 +73,7 @@
117
118 # Pylint disabled messages
119 #
120 -# :C0103: We're defnining a compatible class name therefore we need to match
121 +# :C0103: We're defining a compatible class name therefore we need to match
122 # the format of that name.
123
124 import types
125 Index: kitchen/kitchen2/kitchen/text/display.py
126 ===================================================================
127 --- kitchen.orig/kitchen2/kitchen/text/display.py 2017-08-28 00:40:52.320968774 -0400
128 +++ kitchen/kitchen2/kitchen/text/display.py 2017-08-28 00:40:52.316968791 -0400
129 @@ -3,7 +3,7 @@
130 # Copyright (c) 2013 Red Hat, Inc.
131 # Copyright (c) 2010 Ville Skyttä
132 # Copyright (c) 2009 Tim Lauridsen
133 -# Copyright (c) 2007 Marcus Kuhn
134 +# Copyright (c) 2007 Markus Kuhn
135 #
136 # kitchen is free software; you can redistribute it and/or modify it under the
137 # terms of the GNU Lesser General Public License as published by the Free
138 @@ -20,7 +20,7 @@
139 #
140 # Authors:
141 # James Antill <[email protected]>
142 -# Marcus Kuhn
143 +# Markus Kuhn
144 # Toshio Kuratomi <[email protected]>
145 # Tim Lauridsen
146 # Ville Skyttä
147 @@ -225,7 +225,7 @@
148 This is used to generate the :data:`~kitchen.text.display._COMBINING`
149 table.
150 '''
151 - # Marcus Kuhn's sorted list of non-overlapping intervals of non-spacing
152 + # Markus Kuhn's sorted list of non-overlapping intervals of non-spacing
153 # characters generated ifrom Unicode 5.0 data by:
154 # "uniset +cat=Me +cat=Mn +cat=Cf -00AD +1160-11FF +200B c"
155 markus_kuhn_combining_5_0 = (
156 Index: kitchen/releaseutils.py
157 ===================================================================
158 --- kitchen.orig/releaseutils.py 2017-08-28 00:40:52.320968774 -0400
159 +++ kitchen/releaseutils.py 2017-08-28 00:40:52.316968791 -0400
160 @@ -47,7 +47,7 @@
161 shutil.rmtree('locale')
162 except OSError as e:
163 # If the error is that locale does not exist, we're okay. We're
164 - # deleting it here, afterall
165 + # deleting it here, after all
166 if e.errno != 2:
167 raise
168