Skip to content

Commit

Permalink
Change Node.value to Node.val and minor refactors
Browse files Browse the repository at this point in the history
  • Loading branch information
joowani committed May 20, 2020
1 parent 5ff28f7 commit 1d384dd
Show file tree
Hide file tree
Showing 6 changed files with 180 additions and 186 deletions.
6 changes: 3 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Binarytree: Python Library for Studying Binary Trees
:target: https://badge.fury.io/py/binarytree
:alt: Package Version

.. image:: https://img.shields.io/badge/python-2.7%2C%203.5%2C%203.6%2C%203.7-blue.svg
.. image:: https://img.shields.io/badge/python-2.7%2C%203.5%2C%203.6%2C%203.7%2C%203.8-blue.svg
:target: https://github.com/joowani/binarytree
:alt: Python Versions

Expand Down Expand Up @@ -50,7 +50,7 @@ Announcements
Requirements
============

- Python 2.7, 3.4, 3.5, 3.6 or 3.7.
- Python 2.7, 3.4, 3.5, 3.6, 3.7, 3.8

Installation
============
Expand Down Expand Up @@ -82,7 +82,7 @@ By default, **binarytree** uses the following class to represent a node:
class Node(object):
def __init__(self, value, left=None, right=None):
self.value = value # The node value
self.val = value # The node value
self.left = left # Left child
self.right = right # Right child
Expand Down
Loading

0 comments on commit 1d384dd

Please sign in to comment.