summaryrefslogtreecommitdiff
path: root/tbc/views.py
diff options
context:
space:
mode:
authorkinitrupti2016-10-24 12:32:11 +0530
committerkinitrupti2016-10-24 12:32:11 +0530
commiteb3321f80def84e84329f213e21ef5ac94d4ccd6 (patch)
tree4c26ad501f9387e3d16c389603ae1432bd2c64fd /tbc/views.py
parent6da84d8c334e16ebea6597d8b83d51552935ed00 (diff)
downloadPython-TBC-Interface-eb3321f80def84e84329f213e21ef5ac94d4ccd6.tar.gz
Python-TBC-Interface-eb3321f80def84e84329f213e21ef5ac94d4ccd6.tar.bz2
Python-TBC-Interface-eb3321f80def84e84329f213e21ef5ac94d4ccd6.zip
upgraded to python3
Diffstat (limited to 'tbc/views.py')
-rw-r--r--tbc/views.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tbc/views.py b/tbc/views.py
index 9d8b7d4..3e9f0f5 100644
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -8,12 +8,12 @@ from django.contrib.auth import authenticate, login, logout
from django.contrib.admin.models import CHANGE
from django.contrib.auth.decorators import login_required
from django.template import RequestContext
-from models import *
+from .models import *
from tbc.forms import *
-import local
+from . import local
import os
import zipfile
-import StringIO
+import io
import smtplib
import shutil
import string
@@ -1362,7 +1362,7 @@ def get_certificate(request, book_id=None):
else:
error = True
add_log(user, book, CHANGE, err, proposal_id)
- except Exception, e:
+ except Exception as e:
error = True
add_log(user, book, CHANGE, e, proposal_id)