diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-03-27 09:23:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-03-27 09:23:14 +0400 |
commit | 50a06eccff48a2029fa085dc8459246ff8c6394e (patch) | |
tree | 8c7d733b9358317b425833e8a3497dd200446504 /release/scripts/modules/animsys_refactor.py | |
parent | 7ccfec1ff3ea0ee0ebdbdb91e3e44ab03ab81d6f (diff) |
pep8 cleanup
Diffstat (limited to 'release/scripts/modules/animsys_refactor.py')
-rw-r--r-- | release/scripts/modules/animsys_refactor.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/release/scripts/modules/animsys_refactor.py b/release/scripts/modules/animsys_refactor.py index 9f2acc5e268..5336a8b2b35 100644 --- a/release/scripts/modules/animsys_refactor.py +++ b/release/scripts/modules/animsys_refactor.py @@ -27,10 +27,12 @@ The main function to use is: update_data_paths(...) IS_TESTING = False + def drepr(string): # is there a less crappy way to do this in python?, re.escape also escapes # single quotes strings so cant use it. - return '"%s"' % repr(string)[1:-1].replace("\"", "\\\"").replace("\\'","'") + return '"%s"' % repr(string)[1:-1].replace("\"", "\\\"").replace("\\'", "'") + class DataPathBuilder(object): __slots__ = ("data_path", ) @@ -185,7 +187,7 @@ def update_data_paths(rna_update): if data_path_new != data_path: if not IS_TESTING: fcurve.data_path = data_path_new - fcurve.driver.is_valid = True; # reset to allow this to work again + fcurve.driver.is_valid = True # reset to allow this to work again print("driver-fcurve (%s): %s -> %s" % (id_data.name, data_path, data_path_new)) for var in fcurve.driver.variables: |