Show More
@@ -633,7 +633,7 b' def git_post_receive(unused_repo_path, r' | |||
|
633 | 633 | branches.append(push_ref['name']) |
|
634 | 634 | |
|
635 | 635 | cmd = [settings.GIT_EXECUTABLE, 'log', |
|
636 | '{old_rev}..{new_rev}'.format(**push_ref), | |
|
636 | f'{push_ref["old_rev"]}..{push_ref["new_rev"]}', | |
|
637 | 637 | '--reverse', '--pretty=format:%H'] |
|
638 | 638 | stdout, stderr = subprocessio.run_command( |
|
639 | 639 | cmd, env=os.environ.copy()) |
@@ -41,8 +41,7 b' class StrictAttributeDict(AttributeDictB' | |||
|
41 | 41 | try: |
|
42 | 42 | return self[attr] |
|
43 | 43 | except KeyError: |
|
44 |
raise AttributeError('{} object has no attribute {}' |
|
|
45 | self.__class__, attr)) | |
|
44 | raise AttributeError(f'{self.__class__} object has no attribute {attr}') | |
|
46 | 45 | |
|
47 | 46 | |
|
48 | 47 | class AttributeDict(AttributeDictBase): |
General Comments 0
You need to be logged in to leave comments.
Login now