1
0
mirror of https://github.com/gryf/mc_adbfs.git synced 2025-12-18 20:10:21 +01:00

Removed py2 lefotver, fix variable name.

This commit is contained in:
2022-10-02 16:13:58 +02:00
committed by gryf
parent cbef13ccea
commit 8f3a22a729
2 changed files with 2 additions and 2 deletions

View File

@@ -32,7 +32,7 @@ endif
ifeq ($(FL8_EXISTS), 0) ifeq ($(FL8_EXISTS), 0)
virtualenv_flake8: virtualenv_flake8:
virtualenv -p python2 $(FL8_VENV) virtualenv -p python3 $(FL8_VENV)
$(FL8_VENV)/bin/pip install flake8 $(FL8_VENV)/bin/pip install flake8
else else
virtualenv_flake8: virtualenv_flake8:

2
adbfs
View File

@@ -413,7 +413,7 @@ class Adb(object):
sys.stderr.write('Cannot read directory. Is device connected?\n') sys.stderr.write('Cannot read directory. Is device connected?\n')
return 1 return 1
lines = [l.strip() for l in lines.split('\n') if l.strip()] lines = [line.strip() for line in lines.split('\n') if line.strip()]
if len(lines) == 1: if len(lines) == 1:
reg_match = self.file_re.match(lines[0]) reg_match = self.file_re.match(lines[0])
entry = File(**reg_match.groupdict()) entry = File(**reg_match.groupdict())