Permalink
Browse files

Use simpler relative imports

  • Loading branch information...
1 parent ade024b commit 2b583a851899419fafad7e8f72a3f2d70a13122f @kamens kamens committed Jan 5, 2013
Showing with 5 additions and 7 deletions.
  1. +1 −1 appstats_profiler.py
  2. +1 −1 instrumented_profiler.py
  3. +1 −1 main.py
  4. +2 −4 profiler.py
View
@@ -11,7 +11,7 @@
import cleanup
import unformatter
-from gae_mini_profiler import util
+import util
class Profile(object):
"""Profiler that wraps appstats for programmatic access and reporting."""
View
@@ -20,7 +20,7 @@
import pstats
import StringIO
-from gae_mini_profiler import util
+import util
class Profile(object):
"""Profiler that wraps cProfile for programmatic access and reporting."""
View
@@ -1,7 +1,7 @@
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
-from gae_mini_profiler import profiler
+import profiler
application = webapp.WSGIApplication([
("/gae_mini_profiler/request", profiler.RequestStatsHandler),
View
@@ -27,10 +27,8 @@
import cookies
import pickle
-
-import gae_mini_profiler.config
-from gae_mini_profiler import util
-from gae_mini_profiler import config
+import config
+import util
dev_server = os.environ["SERVER_SOFTWARE"].startswith("Devel")

0 comments on commit 2b583a8

Please sign in to comment.