Skip to content

Commit 169296a

Browse files
committed
csbuild: use inspect.getfullargspec() instead of getargspec()
... which was deprecated since Python 3.0 and stopped working on Fedora 36. Reported-by: Andreas Schneider Closes: #68
1 parent 99e5358 commit 169296a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py/csbuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ key event" + DEFAULT_HELP_SUFFIX)
383383

384384
# check whether we are in a git repository
385385
try:
386-
git_repo_args = inspect.getargspec(git.Repo.__init__).args
386+
git_repo_args = inspect.getfullargspec(git.Repo.__init__).args
387387
if 'search_parent_directories' in git_repo_args:
388388
# search_parent_directories=True was the default behavior until
389389
# the arg was actually introduced (and we would like to keep it)

0 commit comments

Comments
 (0)