from __future__ import absolute_import, division, print_function

if __name__ == "__main__":
	import octoprint
	octoprint.main()

from __future__ import absolute_import, division, print_function

import sys
if sys.version_info[0] >= 3:
	raise Exception("Octoprint does not support Python 3")

if __name__ == "__main__":
	import octoprint
	octoprint.main()

Handle unsupported version at runtime.
Handle unsupported version at runtime.

If you have an ancient setuptools, 4a36ddb3aa77b8d1b1a64c197607fa652705856c
won't successfully prevent installing. These changes will at least give a sane error,
rather then  just barfing on random syntax errors due to the `unicode` type not
being present in py3k.

Cherry picked from 2f20f2d

  from __future__ import absolute_import, division, print_function
+ 
+ import sys
+ if sys.version_info[0] >= 3:
+ 	raise Exception("Octoprint does not support Python 3")
  
  if __name__ == "__main__":
  	import octoprint
  	octoprint.main()
  
Handle unsupported version at runtime.
## Code Before:
from __future__ import absolute_import, division, print_function

if __name__ == "__main__":
	import octoprint
	octoprint.main()

## Instruction:
Handle unsupported version at runtime.
## Code After:
from __future__ import absolute_import, division, print_function

import sys
if sys.version_info[0] >= 3:
	raise Exception("Octoprint does not support Python 3")

if __name__ == "__main__":
	import octoprint
	octoprint.main()
