diff options
author | Alexis Hildebrandt <afh@surryhill.net> | 2023-02-01 09:13:16 +0100 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2023-02-01 22:32:37 +0800 |
commit | 27a87b1077495bc80c2b2bf87ebe72894c25226e (patch) | |
tree | d64cabbdb25008c14c831434c976a0525f122979 | |
parent | dd2fde2aa87372189e2548ef556b50a0b8ee45f2 (diff) | |
download | ledger-27a87b1077495bc80c2b2bf87ebe72894c25226e.tar.gz ledger-27a87b1077495bc80c2b2bf87ebe72894c25226e.tar.bz2 ledger-27a87b1077495bc80c2b2bf87ebe72894c25226e.zip |
acprep: Replace deprecated getargspec with getfullargspec
-rwxr-xr-x | acprep | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -193,10 +193,7 @@ class CommandLineApp(object): # not let us differentiate between application errors and a case # where the user has not passed us enough arguments. So, we check # the argument count ourself. - if sys.version_info < (3, 10): - argspec = inspect.getargspec(self.main) - else: - argspec = inspect.getfullargspec(self.main) + argspec = inspect.getfullargspec(self.main) expected_arg_count = len(argspec[0]) - 1 if len(main_args) >= expected_arg_count: |