diff --git a/LibCarla/source/compiler/disable-ue4-macros.h b/LibCarla/source/compiler/disable-ue4-macros.h index fec666821..beca5d0fc 100644 --- a/LibCarla/source/compiler/disable-ue4-macros.h +++ b/LibCarla/source/compiler/disable-ue4-macros.h @@ -38,7 +38,7 @@ namespace boost { static inline void throw_exception(const std::exception &e) { - UE_LOG(LogCarla, Fatal, TEXT("Exception thronw on Boost libraries: %s"), UTF8_TO_TCHAR(e.what())); + UE_LOG(LogCarla, Fatal, TEXT("Exception thrown on Boost libraries: %s"), UTF8_TO_TCHAR(e.what())); } } // namespace boost diff --git a/PythonAPI/example.py b/PythonAPI/example.py index 5b50c6afa..17bb4c4c2 100755 --- a/PythonAPI/example.py +++ b/PythonAPI/example.py @@ -48,9 +48,9 @@ def main(add_a_camera, enable_autopilot): world = client.get_world() - blueprint_library = world.get_blueprint_library(); + blueprint_library = world.get_blueprint_library() - vehicle_blueprints = blueprint_library.filter('vehicle'); + vehicle_blueprints = blueprint_library.filter('vehicle') actor_list = [] diff --git a/PythonAPI/manual_control.py b/PythonAPI/manual_control.py index bf0904c31..b0ba9aced 100755 --- a/PythonAPI/manual_control.py +++ b/PythonAPI/manual_control.py @@ -93,7 +93,7 @@ class CarlaGame(object): cam_blueprint = world.get_blueprint_library().find('sensor.camera') self._camera = world.spawn_actor(cam_blueprint, CAMERA_POSITION, attach_to=self._vehicle) - self._camera.listen(lambda image: self._parse_image(image)) + self._camera.listen(self._parse_image) while True: for event in pygame.event.get(): diff --git a/PythonAPI/vehicle_gallery.py b/PythonAPI/vehicle_gallery.py index 48319ab17..b18e086f1 100755 --- a/PythonAPI/vehicle_gallery.py +++ b/PythonAPI/vehicle_gallery.py @@ -25,7 +25,7 @@ def main(): client = carla.Client('localhost', 2000) world = client.get_world() spectator = world.get_spectator() - vehicle_blueprints = world.get_blueprint_library().filter('vehicle'); + vehicle_blueprints = world.get_blueprint_library().filter('vehicle') for blueprint in vehicle_blueprints: transform = carla.Transform(LOCATION, carla.Rotation(yaw=-45.0))