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:
authorCampbell Barton <ideasman42@gmail.com>2011-08-22 13:29:33 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-22 13:29:33 +0400
commitcf3881371a5c64d56f352cf09395f93072889a7c (patch)
tree35325e4865f1371d544d3617fbeee47cd4867f73 /io_scene_x3d/export_x3d.py
parente8b28e4d5ad91500e201e014465a03c5ba2b6261 (diff)
pep8 edits
Diffstat (limited to 'io_scene_x3d/export_x3d.py')
-rw-r--r--io_scene_x3d/export_x3d.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/io_scene_x3d/export_x3d.py b/io_scene_x3d/export_x3d.py
index 6f528ebb..1b8863a3 100644
--- a/io_scene_x3d/export_x3d.py
+++ b/io_scene_x3d/export_x3d.py
@@ -96,8 +96,8 @@ def clean_def(str):
# no digit start
if str[0] in "1234567890+-":
str = "_" + str
- return str.translate({# control characters 0x0-0x1f
- # 0x00: "_",
+ return str.translate({ # control characters 0x0-0x1f
+ # 0x00: "_",
0x01: "_",
0x02: "_",
0x03: "_",
@@ -130,19 +130,19 @@ def clean_def(str):
0x1e: "_",
0x1f: "_",
- 0x7f: "_", # 127
-
- 0x20: "_", # space
- 0x22: "_", # "
- 0x27: "_", # '
- 0x23: "_", # #
- 0x2c: "_", # ,
- 0x2e: "_", # .
- 0x5b: "_", # [
- 0x5d: "_", # ]
- 0x5c: "_", # \
- 0x7b: "_", # {
- 0x7d: "_", # }
+ 0x7f: "_", # 127
+
+ 0x20: "_", # space
+ 0x22: "_", # "
+ 0x27: "_", # '
+ 0x23: "_", # #
+ 0x2c: "_", # ,
+ 0x2e: "_", # .
+ 0x5b: "_", # [
+ 0x5d: "_", # ]
+ 0x5c: "_", # \
+ 0x7b: "_", # {
+ 0x7d: "_", # }
})