Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2020-05-10 15:07:25 +0300
committerBrecht Van Lommel <brecht@blender.org>2020-05-10 15:08:21 +0300
commitb4f07c45de2e012bf7342cc17974f4065fe73fdf (patch)
treed3016329ef970488bdeb187a60dbabc7a53e8712
parent980668439a65506da6c46d60ebcaae807d030dbb (diff)
Fix T76610: DXF export fails with Python 3.8
Replace use of removed time.clock(), solution suggested by Paul Morelle.
-rw-r--r--io_export_dxf/export_dxf.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/io_export_dxf/export_dxf.py b/io_export_dxf/export_dxf.py
index 88a27b3b..71434a71 100644
--- a/io_export_dxf/export_dxf.py
+++ b/io_export_dxf/export_dxf.py
@@ -35,7 +35,7 @@ def exportDXF(context, filePath, settings):
"""
print("----------\nExporting to {}".format(filePath))
import time
- time1 = time.clock()
+ time1 = time.perf_counter()
if settings['verbose']:
print("Generating Object list for export... (Root parents only)")
@@ -71,7 +71,7 @@ def exportDXF(context, filePath, settings):
drawing.convert(filePath)
- duration = time.clock() - time1
+ duration = time.perf_counter() - time1
print('%s objects exported in %.2f seconds. -----DONE-----' %\
(exported, duration))
except IOError: