Skip to content

Commit c4cbc02

Browse files
committed
bug fix
1 parent 8a3df34 commit c4cbc02

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

devsimpy/Components.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,9 @@ class DSPComponent:
153153
def Load(filename, label, canvas):
154154
""" Load component from filename.
155155
"""
156+
157+
assert(filename.endswith('.dsp'))
158+
156159
from Container import Diagram
157160

158161
# its possible to use the orignal copy of the droped diagram

devsimpy/InteractionYAML.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import re
77
import sys
88

9-
import datetime
9+
from datetime import datetime
1010

1111
def to_Python(val):
1212
if val in ('true', 'True'):

0 commit comments

Comments
 (0)