Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2339 from pypeclub/bugfix/flame_fix_pop_default_v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
jakubjezek001 authored Dec 2, 2021
2 parents af6fa09 + bf70406 commit eecba17
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions openpype/hosts/flame/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,8 @@ def get(self, k, default=None):
def setdefault(self, k, default=None):
return self.master[self.name].setdefault(k, default)

def pop(self, k, v=object()):
if v is object():
return self.master[self.name].pop(k)
return self.master[self.name].pop(k, v)
def pop(self, *args, **kwargs):
return self.master[self.name].pop(*args, **kwargs)

def update(self, mapping=(), **kwargs):
self.master[self.name].update(mapping, **kwargs)
Expand Down

0 comments on commit eecba17

Please sign in to comment.