Skip to content

Commit 5985a8d

Browse files
committed
🐛 remove Assignment Expresion in order to compatible with older versions
1 parent e558cd3 commit 5985a8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code_counter/core/countable/iterator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ def __search(self, input_path):
3131
file_path = os.path.join(input_path, file)
3232
self._file_queue.append(CountableFile(file_path))
3333
elif os.path.isfile(input_path):
34-
if (suffix := os.path.splitext(input_path)[1]) and len(suffix) > 0 and suffix[1:] in self._suffix:
34+
suffix = os.path.splitext(input_path)[1]
35+
if len(suffix) > 0 and suffix[1:] in self._suffix:
3536
self._file_queue.append(CountableFile(input_path))
3637

3738
def __iter__(self):

0 commit comments

Comments
 (0)