Skip to content

Commit f48e036

Browse files
committed
Use yapf for code formatting
1 parent 8f8ff24 commit f48e036

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

domdf_python_tools/terminal.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,8 @@ def _get_terminal_size_windows():
168168
csbi = create_string_buffer(22)
169169
res = windll.kernel32.GetConsoleScreenBufferInfo(h, csbi)
170170
if res:
171-
(
172-
buf_x, buf_y, cur_x, cur_y, wattr,
173-
left, top, right, bottom,
174-
maxx, maxy
175-
) = struct.unpack("hhhhHhhhhhh", csbi.raw)
171+
(buf_x, buf_y, cur_x, cur_y, wattr, left, top, right, bottom, maxx,
172+
maxy) = struct.unpack("hhhhHhhhhhh", csbi.raw)
176173
size_x = right - left + 1
177174
size_y = bottom - top + 1
178175
return size_x, size_y

tests/test_dates.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ def test_set_timezone():
8383

8484
# Difference between "today" and the new timezone should be the timezone difference
8585
assert (
86-
dates.set_timezone(today, dates.get_timezone(tz, today)).timestamp() +
87-
dates.get_utc_offset(tz, today).total_seconds()
86+
dates.set_timezone(today, dates.get_timezone(tz, today)).timestamp() +
87+
dates.get_utc_offset(tz, today).total_seconds()
8888
) == today.timestamp()
8989

9090
if tz in {
@@ -112,8 +112,8 @@ def test_set_timezone():
112112
#
113113
# )
114114
assert (
115-
dates.set_timezone(test_date, dates.get_timezone(tz, test_date)).timestamp() +
116-
dates.get_utc_offset(tz, test_date).total_seconds()
115+
dates.set_timezone(test_date, dates.get_timezone(tz, test_date)).timestamp() +
116+
dates.get_utc_offset(tz, test_date).total_seconds()
117117
) == test_date.timestamp()
118118

119119

0 commit comments

Comments
 (0)