From 3f2479067cc91d41f424aade649493369b667e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 1 Nov 2018 18:30:10 +0100 Subject: [PATCH] Fixed incompatibility with Python 3.6 (used in Blender 2.79b) --- blender_cloud/attract/__init__.py | 2 +- blender_cloud/attract/draw.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/blender_cloud/attract/__init__.py b/blender_cloud/attract/__init__.py index ea3a027..a6bd046 100644 --- a/blender_cloud/attract/__init__.py +++ b/blender_cloud/attract/__init__.py @@ -934,7 +934,7 @@ class ATTRACT_OT_project_open_in_browser(Operator): import pprint log.debug('found project: %s', pprint.pformat(project.to_dict())) - url = urllib.parse.urljoin(PILLAR_WEB_SERVER_URL, f'attract/{project.url}') + url = urllib.parse.urljoin(PILLAR_WEB_SERVER_URL, 'attract/' + project.url) webbrowser.open_new_tab(url) self.report({'INFO'}, 'Opened a browser at %s' % url) diff --git a/blender_cloud/attract/draw.py b/blender_cloud/attract/draw.py index 733dd4f..ebf3c59 100644 --- a/blender_cloud/attract/draw.py +++ b/blender_cloud/attract/draw.py @@ -179,8 +179,8 @@ def draw_callback_px(line_drawer: AttractLineDrawer): strips = shown_strips(context) - coords: typing.List[Float2] = [] - colors: typing.List[Float4] = [] + coords = [] # type: typing.List[Float2] + colors = [] # type: typing.List[Float4] # Collect all the lines (vertex coords + vertex colours) to draw. for strip in strips: