Skip to content

Commit 25bf50d

Browse files
authored
PEP8 compliance
1 parent 02301eb commit 25bf50d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/pyspark/sql/types.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ def toInternal(self, dt):
200200
def fromInternal(self, ts):
201201
if ts is not None:
202202
# using int to avoid precision loss in float
203-
y, m, d, hh, mm, ss, _, _, _ = time.gmtime(ts // 1000000) if _is_utc else time.localtime(ts // 1000000)
203+
y, m, d, hh, mm, ss, _, _, _ = (time.gmtime(ts // 1000000) if _is_utc
204+
else time.localtime(ts // 1000000))
204205
return datetime.datetime(y, m, d, hh, mm, ss, ts % 1000000)
205206

206207

0 commit comments

Comments
 (0)