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.
1 long_kwargs_single_line = my_function(
2 foo="test, this is a sample value",
3 bar=some_long_value_name_foo_bar_baz if some_boolean_variable else some_fallback_value_foo_bar_baz,
4 baz="hello, this is a another value",
7 multiline_kwargs_indented = my_function(
8 foo="test, this is a sample value",
9 bar=some_long_value_name_foo_bar_baz
10 if some_boolean_variable
11 else some_fallback_value_foo_bar_baz,
12 baz="hello, this is a another value",
15 imploding_kwargs = my_function(
16 foo="test, this is a sample value",
20 baz="hello, this is a another value",
29 exploding_line = "hello this is a slightly long string" if some_long_value_name_foo_bar_baz else "this one is a little shorter"
31 positional_argument_test(some_long_value_name_foo_bar_baz if some_boolean_variable else some_fallback_value_foo_bar_baz)
33 def weird_default_argument(x=some_long_value_name_foo_bar_baz
35 else some_fallback_value_foo_bar_baz):
38 nested = "hello this is a slightly long string" if (some_long_value_name_foo_bar_baz if
39 nesting_test_expressions else some_fallback_value_foo_bar_baz) \
40 else "this one is a little shorter"
42 generator_expression = (
43 some_long_value_name_foo_bar_baz if some_boolean_variable else some_fallback_value_foo_bar_baz for some_boolean_variable in some_iterable
47 def limit_offset_sql(self, low_mark, high_mark):
48 """Return LIMIT/OFFSET SQL clause."""
49 limit, offset = self._get_limit_offset_params(low_mark, high_mark)
53 "LIMIT %d" % limit if limit else None,
54 ("OFFSET %d" % offset) if offset else None,
61 clone._iterable_class = (
62 NamedValuesListIterable
64 else FlatValuesListIterable
66 else ValuesListIterable
71 long_kwargs_single_line = my_function(
72 foo="test, this is a sample value",
74 some_long_value_name_foo_bar_baz
75 if some_boolean_variable
76 else some_fallback_value_foo_bar_baz
78 baz="hello, this is a another value",
81 multiline_kwargs_indented = my_function(
82 foo="test, this is a sample value",
84 some_long_value_name_foo_bar_baz
85 if some_boolean_variable
86 else some_fallback_value_foo_bar_baz
88 baz="hello, this is a another value",
91 imploding_kwargs = my_function(
92 foo="test, this is a sample value",
94 baz="hello, this is a another value",
97 imploding_line = 1 if 1 + 1 == 2 else 0
100 "hello this is a slightly long string"
101 if some_long_value_name_foo_bar_baz
102 else "this one is a little shorter"
105 positional_argument_test(
106 some_long_value_name_foo_bar_baz
107 if some_boolean_variable
108 else some_fallback_value_foo_bar_baz
112 def weird_default_argument(
114 some_long_value_name_foo_bar_baz
116 else some_fallback_value_foo_bar_baz
123 "hello this is a slightly long string"
125 some_long_value_name_foo_bar_baz
126 if nesting_test_expressions
127 else some_fallback_value_foo_bar_baz
129 else "this one is a little shorter"
132 generator_expression = (
134 some_long_value_name_foo_bar_baz
135 if some_boolean_variable
136 else some_fallback_value_foo_bar_baz
138 for some_boolean_variable in some_iterable
142 def limit_offset_sql(self, low_mark, high_mark):
143 """Return LIMIT/OFFSET SQL clause."""
144 limit, offset = self._get_limit_offset_params(low_mark, high_mark)
148 "LIMIT %d" % limit if limit else None,
149 ("OFFSET %d" % offset) if offset else None,
156 clone._iterable_class = (
157 NamedValuesListIterable
159 else FlatValuesListIterable if flat else ValuesListIterable