Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
418855e6
Unverified
Commit
418855e6
authored
Oct 19, 2020
by
peastman
Committed by
GitHub
Oct 19, 2020
Browse files
Fix errors on Python 3.9 (#2888)
* Fix errors on Python 3.9 * Revert changes to travis builds
parent
fce26088
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
wrappers/generateWrappers.py
wrappers/generateWrappers.py
+4
-4
No files found.
wrappers/generateWrappers.py
View file @
418855e6
...
@@ -235,7 +235,7 @@ class CHeaderGenerator(WrapperGenerator):
...
@@ -235,7 +235,7 @@ class CHeaderGenerator(WrapperGenerator):
shortClassName
=
stripOpenMMPrefix
(
className
)
shortClassName
=
stripOpenMMPrefix
(
className
)
typeName
=
convertOpenMMPrefix
(
className
)
typeName
=
convertOpenMMPrefix
(
className
)
destructorName
=
'~'
+
shortClassName
destructorName
=
'~'
+
shortClassName
isAbstract
=
any
(
'virt'
in
method
.
attrib
and
method
.
attrib
[
'virt'
]
==
'pure-virtual'
for
method
in
classNode
.
getiterato
r
(
'memberdef'
))
isAbstract
=
any
(
'virt'
in
method
.
attrib
and
method
.
attrib
[
'virt'
]
==
'pure-virtual'
for
method
in
classNode
.
ite
r
(
'memberdef'
))
if
not
isAbstract
:
if
not
isAbstract
:
# Write constructors
# Write constructors
...
@@ -496,7 +496,7 @@ class CSourceGenerator(WrapperGenerator):
...
@@ -496,7 +496,7 @@ class CSourceGenerator(WrapperGenerator):
shortClassName
=
stripOpenMMPrefix
(
className
)
shortClassName
=
stripOpenMMPrefix
(
className
)
typeName
=
convertOpenMMPrefix
(
className
)
typeName
=
convertOpenMMPrefix
(
className
)
destructorName
=
'~'
+
shortClassName
destructorName
=
'~'
+
shortClassName
isAbstract
=
any
(
'virt'
in
method
.
attrib
and
method
.
attrib
[
'virt'
]
==
'pure-virtual'
for
method
in
classNode
.
getiterato
r
(
'memberdef'
))
isAbstract
=
any
(
'virt'
in
method
.
attrib
and
method
.
attrib
[
'virt'
]
==
'pure-virtual'
for
method
in
classNode
.
ite
r
(
'memberdef'
))
if
not
isAbstract
:
if
not
isAbstract
:
# Write constructors
# Write constructors
...
@@ -959,7 +959,7 @@ class FortranHeaderGenerator(WrapperGenerator):
...
@@ -959,7 +959,7 @@ class FortranHeaderGenerator(WrapperGenerator):
shortClassName
=
stripOpenMMPrefix
(
className
)
shortClassName
=
stripOpenMMPrefix
(
className
)
typeName
=
convertOpenMMPrefix
(
className
)
typeName
=
convertOpenMMPrefix
(
className
)
destructorName
=
'~'
+
shortClassName
destructorName
=
'~'
+
shortClassName
isAbstract
=
any
(
'virt'
in
method
.
attrib
and
method
.
attrib
[
'virt'
]
==
'pure-virtual'
for
method
in
classNode
.
getiterato
r
(
'memberdef'
))
isAbstract
=
any
(
'virt'
in
method
.
attrib
and
method
.
attrib
[
'virt'
]
==
'pure-virtual'
for
method
in
classNode
.
ite
r
(
'memberdef'
))
if
not
isAbstract
:
if
not
isAbstract
:
# Write constructors
# Write constructors
...
@@ -1529,7 +1529,7 @@ class FortranSourceGenerator(WrapperGenerator):
...
@@ -1529,7 +1529,7 @@ class FortranSourceGenerator(WrapperGenerator):
shortClassName
=
stripOpenMMPrefix
(
className
)
shortClassName
=
stripOpenMMPrefix
(
className
)
typeName
=
convertOpenMMPrefix
(
className
)
typeName
=
convertOpenMMPrefix
(
className
)
destructorName
=
'~'
+
shortClassName
destructorName
=
'~'
+
shortClassName
isAbstract
=
any
(
'virt'
in
method
.
attrib
and
method
.
attrib
[
'virt'
]
==
'pure-virtual'
for
method
in
classNode
.
getiterato
r
(
'memberdef'
))
isAbstract
=
any
(
'virt'
in
method
.
attrib
and
method
.
attrib
[
'virt'
]
==
'pure-virtual'
for
method
in
classNode
.
ite
r
(
'memberdef'
))
if
not
isAbstract
:
if
not
isAbstract
:
# Write constructors
# Write constructors
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment