From d758df2ac977f001f800ef50868a111571a642e4 Mon Sep 17 00:00:00 2001 From: Olivier Mangin Date: Wed, 28 May 2014 17:30:52 +0200 Subject: [PATCH] A few python3 fixes. - Fix one implicit relative import. - Fix call to file builtin in test_env. - Fix deprecated lambda syntax. --- pubs/p3.py | 2 ++ pubs/templates/__init__.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pubs/p3.py b/pubs/p3.py index a73276c..d8f1792 100644 --- a/pubs/p3.py +++ b/pubs/p3.py @@ -12,12 +12,14 @@ else: import configparser ustr = str uchr = chr + file = None from urllib.parse import urlparse from urllib.request import urlopen from http.client import HTTPConnection configparser = configparser input = input +file = file def isbasestr(obj): diff --git a/pubs/templates/__init__.py b/pubs/templates/__init__.py index 8bb9e7b..22cbe49 100644 --- a/pubs/templates/__init__.py +++ b/pubs/templates/__init__.py @@ -1 +1 @@ -from str_templates import * \ No newline at end of file +from . str_templates import *