Skip to content

Commit d7fa054

Browse files
committed
Maintain Python 3.4 compatibility
In the previous commit I used pathlib samefile() but that is Python 3.5+ only so I have replaced that call with something equivalent but 3.4+ compatible.
1 parent bc69ac9 commit d7fa054

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal-test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ gesture swipe left_down _internal -w -c 4 ws_left_down
362362
gesture swipe right_up _internal -w -c 4 ws_right_up
363363
gesture swipe right_down _internal -w -c 4 ws_right_down
364364
''', (
365-
'12 desktops TODO',
365+
'12 desktops',
366366
('left_up', 5, 12),
367367
('left_up', 10),
368368
('left_up', 3),
@@ -374,7 +374,7 @@ gesture swipe right_down _internal -w -c 4 ws_right_down
374374
('right_up', 6),
375375
('right_up', 9),
376376
('right_up', 0),
377-
'10 desktops TODO',
377+
'10 desktops',
378378
('left_up', 5, 10),
379379
('left_up', 2),
380380
('left', 3),

libinput-gestures

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def get_device(name, cmd_list_devices, device_list):
147147
dirpath = Path(dirstr)
148148
if dirpath.exists():
149149
for path in dirpath.iterdir():
150-
if devpath.samefile(path.resolve()):
150+
if path.resolve() == devpath:
151151
devname = str(path)
152152
evname = '({})'.format(devpath.name)
153153
break

0 commit comments

Comments
 (0)