From 90882f51387b945bc0f660d8b12200b2f48e80fa Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@gmail.com>
Date: Wed, 13 Jul 2016 20:22:12 +0000
Subject: [PATCH] Many changes to the code to allow internal pegs

---
 python/trisurf/WebTrisurf.py |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/python/trisurf/WebTrisurf.py b/python/trisurf/WebTrisurf.py
index 0ececbc..4b36ec9 100644
--- a/python/trisurf/WebTrisurf.py
+++ b/python/trisurf/WebTrisurf.py
@@ -1,8 +1,11 @@
 import subprocess
-from urllib.parse import urlparse
+import sys, os
+if sys.version_info>=(3,0):
+	from urllib.parse import urlparse
+else:
+	from urlparse import urlparse
 import http.server
 import socketserver
-import sys, os
 
 #Web server
 class TsWEB(http.server.BaseHTTPRequestHandler):

--
Gitblit v1.9.3