Any idea the reason for below issue; Python 3.6.3 (default, Apr 10 2019, 14:37:36) [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import requests >>> def getConsulToken(): ... with open('/opt/sas/viya/config/etc/SASSecurityCertificateFramework/tokens/consul/default/client.token', 'r') as file: ... data = file.read() ... print("The consul Token is: [" + str(data)+"]") ... return str(data)consulToken = getConsulToken() File "<stdin>", line 5 return str(data)consulToken = getConsulToken() ^ SyntaxError: invalid syntax >>>
... View more