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.
2 long_kwargs_single_line = my_function(
3 foo="test, this is a sample value",
4 bar=some_long_value_name_foo_bar_baz if some_boolean_variable else some_fallback_value_foo_bar_baz,
5 baz="hello, this is a another value",
8 multiline_kwargs_indented = my_function(
9 foo="test, this is a sample value",
10 bar=some_long_value_name_foo_bar_baz
11 if some_boolean_variable
12 else some_fallback_value_foo_bar_baz,
13 baz="hello, this is a another value",
16 imploding_kwargs = my_function(
17 foo="test, this is a sample value",
21 baz="hello, this is a another value",
30 exploding_line = "hello this is a slightly long string" if some_long_value_name_foo_bar_baz else "this one is a little shorter"
32 positional_argument_test(some_long_value_name_foo_bar_baz if some_boolean_variable else some_fallback_value_foo_bar_baz)
34 def weird_default_argument(x=some_long_value_name_foo_bar_baz
36 else some_fallback_value_foo_bar_baz):
39 nested = "hello this is a slightly long string" if (some_long_value_name_foo_bar_baz if
40 nesting_test_expressions else some_fallback_value_foo_bar_baz) \
41 else "this one is a little shorter"
43 generator_expression = (
44 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
48 def limit_offset_sql(self, low_mark, high_mark):
49 """Return LIMIT/OFFSET SQL clause."""
50 limit, offset = self._get_limit_offset_params(low_mark, high_mark)
54 "LIMIT %d" % limit if limit else None,
55 ("OFFSET %d" % offset) if offset else None,
62 clone._iterable_class = (
63 NamedValuesListIterable
65 else FlatValuesListIterable
67 else ValuesListIterable
72 long_kwargs_single_line = my_function(
73 foo="test, this is a sample value",
75 some_long_value_name_foo_bar_baz
76 if some_boolean_variable
77 else some_fallback_value_foo_bar_baz
79 baz="hello, this is a another value",
82 multiline_kwargs_indented = my_function(
83 foo="test, this is a sample value",
85 some_long_value_name_foo_bar_baz
86 if some_boolean_variable
87 else some_fallback_value_foo_bar_baz
89 baz="hello, this is a another value",
92 imploding_kwargs = my_function(
93 foo="test, this is a sample value",
95 baz="hello, this is a another value",
98 imploding_line = 1 if 1 + 1 == 2 else 0
101 "hello this is a slightly long string"
102 if some_long_value_name_foo_bar_baz
103 else "this one is a little shorter"
106 positional_argument_test(
107 some_long_value_name_foo_bar_baz
108 if some_boolean_variable
109 else some_fallback_value_foo_bar_baz
113 def weird_default_argument(
115 some_long_value_name_foo_bar_baz
117 else some_fallback_value_foo_bar_baz
124 "hello this is a slightly long string"
126 some_long_value_name_foo_bar_baz
127 if nesting_test_expressions
128 else some_fallback_value_foo_bar_baz
130 else "this one is a little shorter"
133 generator_expression = (
135 some_long_value_name_foo_bar_baz
136 if some_boolean_variable
137 else some_fallback_value_foo_bar_baz
139 for some_boolean_variable in some_iterable
143 def limit_offset_sql(self, low_mark, high_mark):
144 """Return LIMIT/OFFSET SQL clause."""
145 limit, offset = self._get_limit_offset_params(low_mark, high_mark)
149 "LIMIT %d" % limit if limit else None,
150 ("OFFSET %d" % offset) if offset else None,
157 clone._iterable_class = (
158 NamedValuesListIterable
160 else FlatValuesListIterable if flat else ValuesListIterable