I have
hd.meta(http-equiv=\'Content-Type\', content=\'text/html;charset=UTF-8\')
And I am getting:
SyntaxError: keyword can\'t be
I think http-equiv
is being parsed as http
minus equiv
. You should try http_equiv
, or possibly use a special argument depending on the API.
As @Misandrist already pointed out, http-equiv
is interpreted as a subtraction like this: http - equiv
.
If you still need to pass the data to this function, you can do the following thing:
dct = {
'http-equiv': 'Content-Type',
'content': 'text/html;charset=UTF-8'
}
hd.meta(**dct)
Put the keyword arguments into a dictionary and pass its expansion (**dct
).