Skip to content
This repository has been archived by the owner on Nov 20, 2022. It is now read-only.

Fix import errors to support Python >3 #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion debug_toolbar_mongo/operation_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
import time
import inspect
import os
import SocketServer
try:
# Python 2
import SocketServer
except ImportError:
# Python 3
import socketserver

import django
from django.conf import settings


import pymongo
import pymongo.collection
import pymongo.cursor
Expand Down
2 changes: 1 addition & 1 deletion debug_toolbar_mongo/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from debug_toolbar.panels import DebugPanel

import operation_tracker
from debug_toolbar_mongo import operation_tracker

_NAV_SUBTITLE_TPL = u'''
{% for o, n, t in operations %}
Expand Down