All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
4 call(3, "dogsay", textwrap.dedent("""dove
6 call(3, "dogsay", textwrap.dedent("""dove
8 call(3, textwrap.dedent("""cow
9 moo""" % "cowabunga"), "dogsay")
10 call(3, "dogsay", textwrap.dedent("""crow
11 caw""" % "cowabunga"),)
12 call(3, textwrap.dedent("""cat
13 meow""" % "cowabunga"), {"dog", "say"})
14 call(3, {"dog", "say"}, textwrap.dedent("""horse
15 neigh""" % "cowabunga"))
16 call(3, {"dog", "say"}, textwrap.dedent("""pig
17 oink""" % "cowabunga"),)
18 textwrap.dedent("""A one-line triple-quoted string.""")
19 textwrap.dedent("""A two-line triple-quoted string
20 since it goes to the next line.""")
21 textwrap.dedent("""A three-line triple-quoted string
22 that not only goes to the next line
23 but also goes one line beyond.""")
25 A triple-quoted string
26 actually leveraging the textwrap.dedent functionality
27 that ends in a trailing newline,
28 representing e.g. file contents.
30 path.write_text(textwrap.dedent("""\
31 A triple-quoted string
32 actually leveraging the textwrap.dedent functionality
33 that ends in a trailing newline,
34 representing e.g. file contents.
36 path.write_text(textwrap.dedent("""\
37 A triple-quoted string
38 actually leveraging the textwrap.dedent functionality
39 that ends in a trailing newline,
40 representing e.g. {config_filename} file contents.
41 """.format("config_filename", config_filename)))
61 generated_readme = lambda project_name: """
65 """.strip().format(project_name)
67 Custom extra help summary.
75 def get_stuff(cr, value):
85 def get_stuff(cr, value):
113 re.MULTILINE | re.VERBOSE,
115 dis_c_instance_method = """\
116 %3d 0 LOAD_FAST 1 (x)
121 10 LOAD_CONST 0 (None)
123 """ % (_C.__init__.__code__.co_firstlineno + 1,)
124 path.write_text(textwrap.dedent("""\
125 A triple-quoted string
126 actually {verb} the textwrap.dedent functionality
127 that ends in a trailing newline,
128 representing e.g. {file_type} file contents.
129 """.format(verb="using", file_type="test")))
139 def dastardly_default_value(
140 cow: String = json.loads("""this
155 msg = f"""The arguments {bad_arguments} were passed in.
156 Please use `--build-option` instead,
157 `--global-option` is reserved to flags like `--verbose` or `--quiet`.
160 this_will_become_one_line = (
166 this_will_stay_on_three_lines = (
172 this_will_also_become_one_line = ( # comment
184 textwrap.dedent("""dove
185 coo""" % "cowabunga"),
190 textwrap.dedent("""dove
191 coo""" % "cowabunga"),
195 textwrap.dedent("""cow
196 moo""" % "cowabunga"),
202 textwrap.dedent("""crow
203 caw""" % "cowabunga"),
207 textwrap.dedent("""cat
208 meow""" % "cowabunga"),
214 textwrap.dedent("""horse
215 neigh""" % "cowabunga"),
220 textwrap.dedent("""pig
221 oink""" % "cowabunga"),
223 textwrap.dedent("""A one-line triple-quoted string.""")
224 textwrap.dedent("""A two-line triple-quoted string
225 since it goes to the next line.""")
226 textwrap.dedent("""A three-line triple-quoted string
227 that not only goes to the next line
228 but also goes one line beyond.""")
230 A triple-quoted string
231 actually leveraging the textwrap.dedent functionality
232 that ends in a trailing newline,
233 representing e.g. file contents.
235 path.write_text(textwrap.dedent("""\
236 A triple-quoted string
237 actually leveraging the textwrap.dedent functionality
238 that ends in a trailing newline,
239 representing e.g. file contents.
241 path.write_text(textwrap.dedent("""\
242 A triple-quoted string
243 actually leveraging the textwrap.dedent functionality
244 that ends in a trailing newline,
245 representing e.g. {config_filename} file contents.
246 """.format("config_filename", config_filename)))
248 data = yaml.load("""\
258 data = yaml.load("""\
265 """.replace("\n", "")
266 generated_readme = lambda project_name: """
270 """.strip().format(project_name)
272 Custom extra help summary.
280 def get_stuff(cr, value):
293 def get_stuff(cr, value):
326 re.MULTILINE | re.VERBOSE,
328 dis_c_instance_method = """\
329 %3d 0 LOAD_FAST 1 (x)
334 10 LOAD_CONST 0 (None)
336 """ % (_C.__init__.__code__.co_firstlineno + 1,)
337 path.write_text(textwrap.dedent("""\
338 A triple-quoted string
339 actually {verb} the textwrap.dedent functionality
340 that ends in a trailing newline,
341 representing e.g. {file_type} file contents.
342 """.format(verb="using", file_type="test")))
357 def dastardly_default_value(
358 cow: String = json.loads("""this
374 msg = f"""The arguments {bad_arguments} were passed in.
375 Please use `--build-option` instead,
376 `--global-option` is reserved to flags like `--verbose` or `--quiet`.
379 this_will_become_one_line = "abc"
381 this_will_stay_on_three_lines = (
387 this_will_also_become_one_line = "abc" # comment