Aug-11-2017, 03:13 PM
(Aug-11-2017, 02:32 PM)snippsat Wrote:(Aug-11-2017, 02:13 PM)segs Wrote: I am currently running this script from this online tool http://pep8online.com/ which seems to come with the errors and the lines.I was wondering how you did that mess in first post.
pep8online is not for running code,it's getting advice for better code quality.
You can not run that script online,
it has a lot of dependencies and has MySQL connection to locals files.
# Get MySQL connection parameters from zabbix conf file with open(self.zabbix_conf) as f: my = dict( ln.lower()[2:].split('=') for ln in f.read().split('\n') if ln.startswith('DB') ) self.db = MySQLdb.connect(my['host'], my['user'], my['password'], my['name']) self.mycsr = self.db.cursor()There is repl.it that can run Python code online.
Will of course not work with tihs script as mention
Ah Thank you, when i run it there i get ^
SyntaxError: invalid syntax error