Skip to content

Commit 2421153

Browse files
committed
reduce permissions
1 parent 9977f2d commit 2421153

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "scan-pdf"
3-
version = "0.4.4"
3+
version = "0.4.5"
44
description = "Tools for using scanners with document feeder"
55
authors = ["Andreas Würl <[email protected]>"]
66
license = "Apache-2.0"
@@ -36,4 +36,4 @@ testpaths = ["tests"]
3636
python_version = "3.10"
3737
warn_return_any = true
3838
disallow_untyped_defs = true
39-
packages = ["scan_pdf"]
39+
packages = ["scan_pdf"]

scan_pdf/console.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,14 @@ def run() -> None:
4141
parser.add_argument('--paper-width', dest='paper_width', default=0, help="override paper width")
4242

4343
options = parser.parse_args()
44-
print(type(options))
4544

4645
logging.basicConfig(level=logging.DEBUG if options.debug else logging.INFO)
4746
logger = logging.getLogger(__name__)
4847

4948
origin_dir = os.getcwd()
5049

5150
with TempDir() as temp_dir:
52-
os.chmod(temp_dir, stat.S_IRWXU | stat.S_IRWXG | stat.S_IRWXO)
51+
os.chmod(temp_dir, stat.S_IRWXU)
5352
os.chdir(temp_dir)
5453

5554
output_file_name = options.output_file_name[0]

0 commit comments

Comments
 (0)