Skip to content

Commit

Permalink
Add open coded OpenStruct
Browse files Browse the repository at this point in the history
  • Loading branch information
Werkov committed Jul 4, 2024
1 parent 91a42bb commit 38518d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion git_explode/exploder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import copy
import six
from ostruct import OpenStruct

from git_deps.detector import DependencyDetector
from git_deps.gitutils import GitUtils
Expand All @@ -12,6 +11,11 @@
from git_explode.listener import ExplodeDependencyListener
from git_explode.topics import TopicManager

class OpenStruct:
def __init__(self, data):
self.__dict__.update(data)
def __getattr__(self, key):
return self.__dict__[key] if key in self.__dict__ else None

class GitExploder(object):
"""Explode a linear sequence of git commits into multiple independent
Expand Down

0 comments on commit 38518d1

Please sign in to comment.