Skip to content

Commit

Permalink
Fix example code.
Browse files Browse the repository at this point in the history
And try testing things in future...

Closes #8.
  • Loading branch information
jamesremuscat committed Sep 7, 2017
1 parent 0eba316 commit 42e39e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pcars is a Python client for the Project CARS UDP data stream.
from pcars.stream import PCarsStreamReceiver

class MyPCarsListener(object):
def handlePacket(data):
def handlePacket(self, data):
# You probably want to do something more exciting here
# You probably also want to switch on data.packetType
# See listings in packet.py for packet types and available fields for each
Expand Down

0 comments on commit 42e39e9

Please sign in to comment.