# HG changeset patch # User Paul Boddie # Date 1560009293 -7200 # Node ID 97fb61c1a87145b30edcee471b3037bca13afd76 # Parent 938887b82033d33ceaf9e9a462f1aabf5b7c8df2 Fix default parameter names where .name attribute initialisers are used. diff -r 938887b82033 -r 97fb61c1a871 inspector.py --- a/inspector.py Sun Jun 02 23:10:26 2019 +0200 +++ b/inspector.py Sat Jun 08 17:54:53 2019 +0200 @@ -3,8 +3,8 @@ """ Inspect and obtain module structure. -Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, - 2014, 2015, 2016, 2017, 2018 Paul Boddie +Copyright (C) 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, + 2018, 2019 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -659,6 +659,9 @@ self.function_defaults[function_name] = [] for argname, default in compiler.ast.get_defaults(n): + if argname[0] == ".": + argname = argname[1:] + if default: # Obtain any reference for the default.