eric6/WebBrowser/Bookmarks/BookmarksImporters/IExplorerImporter.py

changeset 7836
2f0d208b8137
parent 7785
9978016560ec
child 7923
91e843545d9a
equal deleted inserted replaced
7835:0835ed67714b 7836:2f0d208b8137
124 if ext.lower() == ".url": 124 if ext.lower() == ".url":
125 path = os.path.join(directory, file) 125 path = os.path.join(directory, file)
126 try: 126 try:
127 with open(path, "r") as f: 127 with open(path, "r") as f:
128 contents = f.read() 128 contents = f.read()
129 except IOError: 129 except OSError:
130 continue 130 continue
131 url = "" 131 url = ""
132 for line in contents.splitlines(): 132 for line in contents.splitlines():
133 if line.startswith("URL="): 133 if line.startswith("URL="):
134 url = line.replace("URL=", "") 134 url = line.replace("URL=", "")

eric ide

mercurial