Skip to content

Commit

Permalink
Fix py2.* issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
c0fec0de committed Mar 13, 2017
1 parent f6f0aed commit f8d109d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions anytree/iterators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

import six


@six.python_2_unicode_compatible
class PreOrderIter(object):

def __init__(self, node):
Expand Down Expand Up @@ -43,6 +47,7 @@ def __iter__(self):
stack = node.children + stack[1:]


@six.python_2_unicode_compatible
class PostOrderIter(object):

def __init__(self, node):
Expand Down
3 changes: 3 additions & 0 deletions anytree/walker.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# -*- coding: utf-8 -*-

import six


@six.python_2_unicode_compatible
class Walker(object):

def __init__(self):
Expand Down

0 comments on commit f8d109d

Please sign in to comment.