Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def beautifier_test_github_css():
cssbeautifier.beautify(data, options)
def format(self, text):
text = text.decode('utf-8')
stderr = ''
stdout = ''
try:
stdout = cssbeautifier.beautify(text, self.options)
except Exception as e:
stderr = str(e)
if (not stderr and not stdout):
stderr = 'Formatting error!'
return stdout, stderr