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