Skip to content
Snippets Groups Projects
Commit 26d029029aff authored by jfp's avatar jfp
Browse files

Make vscode happy

parent d052b3f28585
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,8 @@
print('=========', file=fo)
with FindFile(b'SYS$SYSROOT:[000000...]*.*') as fi:
for fn in fi:
for fn in fi: # type:ignore
fn: bytes
it = (
itemList.itemList(
code=ossdef.OSS__PROTECTION, dtype=itemList.il_unsignedWord
......
......@@ -22,7 +22,7 @@
print('RULE 0901', file=fo)
print('=========', file=fo)
it = [
it = (
itemList.itemList(
code=ossdef.OSS__PROTECTION, dtype=itemList.il_unsignedWord
),
......@@ -26,7 +26,7 @@
itemList.itemList(
code=ossdef.OSS__PROTECTION, dtype=itemList.il_unsignedWord
),
]
)
with FindFile(b'SYS$STARTUP:*.*', b'') as ifn:
for fn in ifn: # type: ignore
fn: bytes
......
......@@ -84,7 +84,7 @@
all_users = user.all_users()
it = [
it = (
itemList.itemList(
code=ossdef.OSS__OWNER, dtype=itemList.il_unsignedLong
),
......@@ -88,7 +88,7 @@
itemList.itemList(
code=ossdef.OSS__OWNER, dtype=itemList.il_unsignedLong
),
]
)
for u in list(all_users.values()):
df: bytes = u.defdev + u.defdir + b'MAIL.MAI'
if file_exists(df):
......@@ -412,7 +412,7 @@
print('RULE 1114', file=fo)
print('=========', file=fo)
it = [
it = (
itemList.itemList(
code=ossdef.OSS__OWNER, dtype=itemList.il_unsignedLong
),
......@@ -416,7 +416,7 @@
itemList.itemList(
code=ossdef.OSS__OWNER, dtype=itemList.il_unsignedLong
),
]
)
own: int = starlet.get_security(
objnam='SYS$SYSTEM:VMSMAIL_PROFILE.DATA', clsnam='FILE', itmlst=it
......
......@@ -112,7 +112,7 @@
if not fmt:
print('RULE 1304', file=fo)
print('=========', file=fo)
it = [
it = (
itemList.itemList(
code=ossdef.OSS__OWNER, dtype=itemList.il_unsignedLong
),
......@@ -116,7 +116,7 @@
itemList.itemList(
code=ossdef.OSS__OWNER, dtype=itemList.il_unsignedLong
),
]
)
all_users = user.all_users()
for u in list(all_users.values()):
fn: bytes = u.defdev + u.defdir
......
......@@ -15,8 +15,8 @@
with os.popen('install list/full') as p:
r = [x[:-1].rstrip() for x in p]
dspec = None
fspec = None
dspec = ''
fspec = ''
priv = None
auth = None
hasPriv = False
......@@ -27,7 +27,7 @@
continue
if l[0] != ' ':
dspec = l.replace('.000000', '')
fspec = None
fspec = ''
elif ';' in l:
priv = auth = None
hasPriv = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment