File: 0001-Replace-usage-of-inspect.getargspec-with-inspect.get.patch

package info (click to toggle)
dh-virtualenv 1.2.2-1.7
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 464 kB
  • sloc: python: 1,237; perl: 157; makefile: 135; sh: 22
file content (24 lines) | stat: -rw-r--r-- 892 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Andrew Morgan <andrew@amorgan.xyz>
Date: Tue, 3 Jan 2023 14:29:53 +0000
Subject: Replace usage of inspect.getargspec with inspect.getfullargspec

It's debatable whether this check is even still needed, but for now
let's do the simple thing and update it to be compatible with modern
Python versions.
---
 bin/dh_virtualenv | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/dh_virtualenv b/bin/dh_virtualenv
index 8bafbcf..0a422ad 100755
--- a/bin/dh_virtualenv
+++ b/bin/dh_virtualenv
@@ -57,7 +57,7 @@ def main():
     # passed the packages keyword argument. Newer (like Ubuntu
     # Precise) expect the whole options to be passed.
 
-    arguments = inspect.getargspec(DebHelper.__init__).args
+    arguments = inspect.getfullargspec(DebHelper.__init__).args
     if 'packages' in arguments:
         dh = DebHelper(packages=options.package or None)
     else: