# HG changeset patch # User Gregory Szorc # Date 2015-08-09 02:30:17 # Node ID 8cd30e9277aefd11a7ce08c73e34c62e66f83bf8 # Parent 2c07c6884394f584a817375d572c33c2d87ea098 lock: use absolute_import diff --git a/mercurial/lock.py b/mercurial/lock.py --- a/mercurial/lock.py +++ b/mercurial/lock.py @@ -5,10 +5,19 @@ # This software may be used and distributed according to the terms of the # GNU General Public License version 2 or any later version. -import util, error -import errno, os, socket, time +from __future__ import absolute_import + +import errno +import os +import socket +import time import warnings +from . import ( + error, + util, +) + class lock(object): '''An advisory lock held by one process to control access to a set of files. Non-cooperating processes or incorrectly written scripts