| 1 |
From: Andrew Morgan <[email protected]> |
| 2 |
Date: Tue, 3 Jan 2023 14:29:53 +0000 |
| 3 |
Subject: Replace usage of inspect.getargspec with inspect.getfullargspec |
| 4 |
|
| 5 |
It's debatable whether this check is even still needed, but for now |
| 6 |
let's do the simple thing and update it to be compatible with modern |
| 7 |
Python versions. |
| 8 |
--- |
| 9 |
bin/dh_virtualenv | 2 +- |
| 10 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 11 |
|
| 12 |
diff --git a/bin/dh_virtualenv b/bin/dh_virtualenv |
| 13 |
index 8bafbcf..0a422ad 100755 |
| 14 |
--- a/bin/dh_virtualenv |
| 15 |
+++ b/bin/dh_virtualenv |
| 16 |
@@ -57,7 +57,7 @@ def main(): |
| 17 |
# passed the packages keyword argument. Newer (like Ubuntu |
| 18 |
# Precise) expect the whole options to be passed. |
| 19 |
|
| 20 |
- arguments = inspect.getargspec(DebHelper.__init__).args |
| 21 |
+ arguments = inspect.getfullargspec(DebHelper.__init__).args |
| 22 |
if 'packages' in arguments: |
| 23 |
dh = DebHelper(packages=options.package or None) |
| 24 |
else: |