Skip to content

Commit

Permalink
fix for py3.11, no longer supports py2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkerz committed Mar 7, 2023
1 parent ad8dbfa commit 0f21d3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pie.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Enables a user to execute predefined tasks that may accept parameters and options from the command line without any other required packages.
Great for bootstrapping a development environment, and then interacting with it.
"""
__VERSION__='0.3.0i'
__VERSION__='0.4.0'


import inspect
Expand Down Expand Up @@ -64,7 +64,7 @@ def __init__(self,fn,params,namespace):

def __call__(self,*args,**kwargs):
# get arg names and defaults from the function
(arg_names,varargs,keywords,defaults)=inspect.getargspec(self.fn)
(arg_names,varargs,keywords,defaults,_,_,_)=inspect.getfullargspec(self.fn)
# map defaults to an arg name
defaults=dict(zip(arg_names[len(arg_names)-len(defaults):],defaults)) if defaults is not None else {}
# map provided values to an arg name
Expand Down

0 comments on commit 0f21d3c

Please sign in to comment.