[MERGE] From-Import-Removal

This commit is contained in:
Faik Uygur
2007-04-26 12:19:45 +00:00
parent 97d38e2537
commit c7b4cf16d8
+4 -4
View File
@@ -13,8 +13,8 @@
"""Simplifies working with URLs, purl module provides common URL """Simplifies working with URLs, purl module provides common URL
parsing and processing""" parsing and processing"""
from urlparse import urlparse import urlparse
from os.path import basename import os.path
import gettext import gettext
__trans = gettext.translation('pisi', fallback=True) __trans = gettext.translation('pisi', fallback=True)
@@ -49,11 +49,11 @@ class URI(object):
def set_uri(self, uri): def set_uri(self, uri):
# (scheme, location, path, params, query, fragment) # (scheme, location, path, params, query, fragment)
uri = str(uri) uri = str(uri)
u = urlparse(uri, "file") u = urlparse.urlparse(uri, "file")
self.__scheme = u[0] self.__scheme = u[0]
self.__location = u[1] self.__location = u[1]
self.__path = u[2] self.__path = u[2]
self.__filename = basename(self.__path) self.__filename = os.path.basename(self.__path)
self.__params = u[3] self.__params = u[3]
self.__query = u[4] self.__query = u[4]
self.__fragment = u[5] self.__fragment = u[5]