Skip to content
This repository was archived by the owner on Sep 29, 2025. It is now read-only.

Commit 72305bf

Browse files
authored
Avoid "is" with a literal
Eliminates python warnings
1 parent 53ec587 commit 72305bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

btrfs-clone

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def get_subvols(mnt):
141141
svs = []
142142
for line in vols.decode("ascii").split("\n"):
143143
# Skip header lines
144-
if len(line) is 0 or not line[0].isdigit():
144+
if len(line) == 0 or not line[0].isdigit():
145145
continue
146146
try:
147147
sv = Subvol(mnt, line.split()[3])

0 commit comments

Comments
 (0)