diff options
author | 2019-07-11 21:24:44 +0200 | |
---|---|---|
committer | 2019-07-11 21:24:44 +0200 | |
commit | 412991b01c827e1579c5ba63127723f97ecdc7c5 (patch) | |
tree | 3b670142fdda282be11c102912cccb3598d8e7e5 | |
parent | Merge pull request #2850 from disconnect3d/patch-1 (diff) | |
download | firejail-412991b01c827e1579c5ba63127723f97ecdc7c5.tar.gz firejail-412991b01c827e1579c5ba63127723f97ecdc7c5.tar.zst firejail-412991b01c827e1579c5ba63127723f97ecdc7c5.zip |
fix minor issues from lgtm.com
-rwxr-xr-x | contrib/fix_private-bin.py | 2 | ||||
-rwxr-xr-x | contrib/fjclip.py | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/contrib/fix_private-bin.py b/contrib/fix_private-bin.py index 65bfba52d..c6c6f908d 100755 --- a/contrib/fix_private-bin.py +++ b/contrib/fix_private-bin.py | |||
@@ -61,7 +61,6 @@ def fixSymlinkedBins(files, replMap): | |||
61 | if shouldUpdate: | 61 | if shouldUpdate: |
62 | with open(filename, "w") as file: | 62 | with open(filename, "w") as file: |
63 | file.writelines(lines) | 63 | file.writelines(lines) |
64 | pass | ||
65 | 64 | ||
66 | 65 | ||
67 | def createSetOfBinaries(files): | 66 | def createSetOfBinaries(files): |
@@ -70,7 +69,6 @@ def createSetOfBinaries(files): | |||
70 | """ | 69 | """ |
71 | s = set() | 70 | s = set() |
72 | for filename in files: | 71 | for filename in files: |
73 | lines = None | ||
74 | with open(filename, "r") as file: | 72 | with open(filename, "r") as file: |
75 | for line in file: | 73 | for line in file: |
76 | if privRx.search(line): | 74 | if privRx.search(line): |
diff --git a/contrib/fjclip.py b/contrib/fjclip.py index 3d0c56dc6..30323b1d5 100755 --- a/contrib/fjclip.py +++ b/contrib/fjclip.py | |||
@@ -1,6 +1,5 @@ | |||
1 | #!/usr/bin/env python | 1 | #!/usr/bin/env python |
2 | 2 | ||
3 | import re | ||
4 | import sys | 3 | import sys |
5 | import subprocess | 4 | import subprocess |
6 | import fjdisplay | 5 | import fjdisplay |