osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spot the invalid syntax


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