From 02d5c468a25eff22b5e9dce3738a954911821f11 Mon Sep 17 00:00:00 2001 From: David Vo Date: Sat, 19 Jan 2019 17:38:41 +1100 Subject: [PATCH] Fix docstrings in Python example (#78) --- .../python-multiCameraServer/multiCameraServer.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/examples/python-multiCameraServer/multiCameraServer.py b/deps/examples/python-multiCameraServer/multiCameraServer.py index 165ce2f..0184556 100755 --- a/deps/examples/python-multiCameraServer/multiCameraServer.py +++ b/deps/examples/python-multiCameraServer/multiCameraServer.py @@ -54,12 +54,12 @@ team = None server = False cameraConfigs = [] -"""Report parse error.""" def parseError(str): + """Report parse error.""" print("config error in '" + configFile + "': " + str, file=sys.stderr) -"""Read single camera configuration.""" def readCameraConfig(config): + """Read single camera configuration.""" cam = CameraConfig() # name @@ -84,8 +84,8 @@ def readCameraConfig(config): cameraConfigs.append(cam) return True -"""Read configuration file.""" def readConfig(): + """Read configuration file.""" global team global server @@ -131,8 +131,8 @@ def readConfig(): return True -"""Start running the camera.""" def startCamera(config): + """Start running the camera.""" print("Starting camera '{}' on {}".format(config.name, config.path)) inst = CameraServer.getInstance() camera = UsbCamera(config.name, config.path)