Skip to content

Commit

Permalink
Merge pull request #31 from p0wdrdotcom/bug/python-3-print-function
Browse files Browse the repository at this point in the history
Bug/python 3 print function
  • Loading branch information
enginespot committed Jul 23, 2015
2 parents 01041fb + 9aea64a commit 1a79c5f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsbeautify.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import print_function
import sublime, sublime_plugin, re, sys, os

directory = os.path.dirname(os.path.realpath(__file__))
Expand Down Expand Up @@ -69,7 +70,7 @@ def is_js_buffer(view):
region = sublime.Region(0, view.size())
code = view.substr(region)
header="#!/usr/bin/env node"
print "hello"
print("hello")
if header in code.split('\n')[0]:
return True
if (fName != None): # file exists, pull syntax type from extension
Expand Down

0 comments on commit 1a79c5f

Please sign in to comment.