mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Reformat Python code for 2023.03 release (#6294)
* run yapf * run isort --------- Co-authored-by: Greg Landrum <greg.landrum@gmail.com>
This commit is contained in:
@@ -7,8 +7,8 @@ becomes this
|
||||
%template(OnBitProjSimilarityEBV) OnBitProjSimilarity<ExplicitBitVect,ExplicitBitVect>;
|
||||
"""
|
||||
|
||||
|
||||
import re
|
||||
|
||||
template_match = re.compile(r"""template\s*\<(.+)\>\s*.*\s+(\w+)\s*\(.*""")
|
||||
|
||||
|
||||
|
||||
@@ -9,11 +9,11 @@ files don't have that section and for now this program can't handle them without
|
||||
by hand.
|
||||
"""
|
||||
|
||||
|
||||
from BeautifulSoup import *
|
||||
import os
|
||||
import re
|
||||
|
||||
from BeautifulSoup import *
|
||||
|
||||
|
||||
def list_class_files(dir):
|
||||
return [
|
||||
@@ -306,8 +306,8 @@ Notes:
|
||||
|
||||
'''
|
||||
_renote = re.compile(r'^\w*(Notes?[:]?)(?:.*?$)(.*?)((^\w)|\Z)', flags=(re.M | re.I | re.DOTALL))
|
||||
_reparam = re.compile(r'^\w*(Param(?:eter)?s?[:]?)(?:.*?$)(.*?)((^\w)|\Z)', flags=(re.M | re.I |
|
||||
re.DOTALL))
|
||||
_reparam = re.compile(r'^\w*(Param(?:eter)?s?[:]?)(?:.*?$)(.*?)((^\w)|\Z)',
|
||||
flags=(re.M | re.I | re.DOTALL))
|
||||
_rereturn = re.compile(r'^\w*(Returns[:])(?:.*?$)(.*?)((^\w)|\Z)', flags=(re.M | re.I | re.DOTALL))
|
||||
_rereturn2 = re.compile(r'^\w*(Returns)\s+(.*?)((^\w)|\Z)', flags=(re.M | re.I | re.DOTALL))
|
||||
_reusage = re.compile(r'^\w*(Usage[:]?)(?:.*?$)(.*?)((^\w)|\Z)', flags=(re.M | re.I | re.DOTALL))
|
||||
|
||||
Reference in New Issue
Block a user