diff options
Diffstat (limited to 'pylint/pyreverse/inspector.py')
-rw-r--r-- | pylint/pyreverse/inspector.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pylint/pyreverse/inspector.py b/pylint/pyreverse/inspector.py index bba6d26c0..17ef46bff 100644 --- a/pylint/pyreverse/inspector.py +++ b/pylint/pyreverse/inspector.py @@ -261,7 +261,7 @@ class Linker(IdGeneratorMixIn, utils.LocalsVisitor): if name[0] == "*": continue # analyze dependencies - fullname = "%s.%s" % (basename, name[0]) + fullname = "{}.{}".format(basename, name[0]) if fullname.find(".") > -1: try: fullname = modutils.get_module_part(fullname, context_file) @@ -284,7 +284,7 @@ class Linker(IdGeneratorMixIn, utils.LocalsVisitor): module = node.root() context_name = module.name if relative: - mod_path = "%s.%s" % (".".join(context_name.split(".")[:-1]), mod_path) + mod_path = "{}.{}".format(".".join(context_name.split(".")[:-1]), mod_path) if self.compute_module(context_name, mod_path): # handle dependencies if not hasattr(module, "depends"): @@ -319,7 +319,7 @@ class Project: return self.modules def __repr__(self): - return "<Project %r at %s (%s modules)>" % ( + return "<Project {!r} at {} ({} modules)>".format( self.name, id(self), len(self.modules), |