Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Fix some python3 problems
Browse files Browse the repository at this point in the history
  • Loading branch information
coldfix committed May 4, 2014
1 parent d8dc3c9 commit f61a821
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion madseq.py
Expand Up @@ -581,7 +581,7 @@ def __call__(self, node, defs):
"""

if isinstance(node, Element):
defs[node.name] = node
defs[str(node.name)] = node
node._base = defs.get(node.type)
if not isinstance(node, Sequence):
return node
Expand Down
6 changes: 3 additions & 3 deletions test/test_element.py
@@ -1,7 +1,7 @@
# test utilities
import unittest

from pydicti import odicti
from pydicti import odicti, dicti

# tested module
import madseq
Expand Down Expand Up @@ -38,8 +38,8 @@ def test_all_args(self):
el1 = madseq.Element(None, None, odicti(a='a1', b='b1', d='d1'), el0)
el2 = madseq.Element(None, None, odicti(a='a2'), el1)
self.assertEqual(el2.all_args,
odicti([('c', 'c0'), ('b', 'b1'),
('d', 'd1'), ('a', 'a2')]))
dicti([('c', 'c0'), ('b', 'b1'),
('d', 'd1'), ('a', 'a2')]))

def test_copy(self):
el = madseq.Element(None, None, odicti(a=1))
Expand Down

0 comments on commit f61a821

Please sign in to comment.