Skip to content

Commit cf28ff6

Browse files
authored
Merge pull request #76 from NCAR/hua-work-common
grp.getgrnam[] to ()
2 parents 2a1d2fd + 9fe9fd8 commit cf28ff6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "rda_python_common"
7-
version = "2.0.4"
7+
version = "2.0.5"
88
authors = [
99
{ name="Zaihua Ji", email="zji@ucar.edu" },
1010
]

src/rda_python_common/PgFile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1304,7 +1304,7 @@ def change_local_group(file, ngrp = None, ogrp = None, logname = None, logact =
13041304
if not ngrp:
13051305
ngid = PgLOG.PGLOG['GDEXGID']
13061306
else:
1307-
ngid = grp.getgrnam[ngrp].gr_gid
1307+
ngid = grp.getgrnam(ngrp).gr_gid
13081308
if logact and logact&PgLOG.EXITLG: logact &=~PgLOG.EXITLG
13091309
if not (ogrp and logname):
13101310
info = check_local_file(file, 10, logact)

src/rda_python_common/pg_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,7 +1031,7 @@ def change_local_group(self, file, ngrp = None, ogrp = None, logname = None, log
10311031
if not ngrp:
10321032
ngid = self.PGLOG['GDEXGID']
10331033
else:
1034-
ngid = grp.getgrnam[ngrp].gr_gid
1034+
ngid = grp.getgrnam(ngrp).gr_gid
10351035
if logact and logact&self.EXITLG: logact &=~self.EXITLG
10361036
if not (ogrp and logname):
10371037
info = self.check_local_file(file, 10, logact)

0 commit comments

Comments
 (0)