Skip to content

Commit be355ca

Browse files
Reformatting.
1 parent fdc913b commit be355ca

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

Lib/urllib/parse.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ def _encode_result(obj, encoding=_implicit_encoding,
112112

113113
def _decode_args(args, encoding=_implicit_encoding,
114114
errors=_implicit_errors):
115-
return tuple(x.decode(encoding, errors) if x else '' if x is not None else x
115+
return tuple(x.decode(encoding, errors) if x
116+
else '' if x is not None
117+
else None
116118
for x in args)
117119

118120
def _coerce_args(*args):
@@ -145,8 +147,8 @@ class _ResultMixinStr(object):
145147

146148
def encode(self, encoding='ascii', errors='strict'):
147149
result = self._encoded_counterpart(*(x.encode(encoding, errors)
148-
if x is not None else None
149-
for x in self))
150+
if x is not None else None
151+
for x in self))
150152
try:
151153
result._keep_empty = self._keep_empty
152154
except AttributeError:
@@ -160,8 +162,8 @@ class _ResultMixinBytes(object):
160162

161163
def decode(self, encoding='ascii', errors='strict'):
162164
result = self._decoded_counterpart(*(x.decode(encoding, errors)
163-
if x is not None else None
164-
for x in self))
165+
if x is not None else None
166+
for x in self))
165167
try:
166168
result._keep_empty = self._keep_empty
167169
except AttributeError:

0 commit comments

Comments
 (0)