Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e4a83ff

Browse files
Replace deprecated Logger.warn with Logger.warning
1 parent b0a69bb commit e4a83ff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎git/objects/submodule/base.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ def update(self, recursive=False, init=True, to_latest_revision=False, progress=
538538
mrepo.head.set_reference(local_branch, logmsg="submodule: attaching head to %s" % local_branch)
539539
mrepo.head.ref.set_tracking_branch(remote_branch)
540540
except (IndexError, InvalidGitRepositoryError):
541-
log.warn("Failed to checkout tracking branch %s", self.branch_path)
541+
log.warning("Failed to checkout tracking branch %s", self.branch_path)
542542
# END handle tracking branch
543543

544544
# NOTE: Have to write the repo config file as well, otherwise

‎git/objects/submodule/root.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def update(self, previous_commit=None, recursive=True, force_remove=False, init=
265265
# this way, it will be checked out in the next step
266266
# This will change the submodule relative to us, so
267267
# the user will be able to commit the change easily
268-
log.warn("Current sha %s was not contained in the tracking\
268+
log.warning("Current sha %s was not contained in the tracking\
269269
branch at the new remote, setting it the the remote's tracking branch", sm.hexsha)
270270
sm.binsha = rref.commit.binsha
271271
# END reset binsha

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /