Spot the invalid syntax

Chris Angelico rosuav at gmail.com
Thu Mar 8 18:26:17 EST 2018


On Fri, Mar 9, 2018 at 10:23 AM, Ian Pilcher <arequipeno at gmail.com> wrote:
> (Because I certainly can't.)
>
>>                 ips.update(_san_dnsname_ips(cname, True)
>>     return ips
>
>
> 2.7 and 3.6 are both giving me:
>
>   File "/tmp/test.py", line 32
>     return ips
>          ^
> SyntaxError: invalid syntax
>
> I've checked for tabs and mismatched parentheses.

Check the immediately preceding line (the one I quoted).

(Sometimes, you just need another pair of eyes.)

ChrisA



More information about the Python-list mailing list