Skip to content

Commit 9c01908

Browse files
fix '\...' -> r''
1 parent d8dc4c1 commit 9c01908

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

PySpice/Math/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def even(x):
3838
####################################################################################################
3939

4040
def rms_to_amplitude(x):
41-
"""Return :math:`x \sqrt{2}`"""
41+
r"""Return :math:`x \sqrt{2}`"""
4242
return x * math.sqrt(2)
4343

4444
def amplitude_to_rms(x):
45-
"""Return :math:`x / \sqrt{2}`"""
45+
r"""Return :math:`x / \sqrt{2}`"""
4646
return x / math.sqrt(2)

tasks/release.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def update_git_sha(ctx):
9090
version = version.replace('-branched', '')
9191
else:
9292
version = tag
93-
if not re.match('\d+(\.\d+(\.\d+)?)?', version):
93+
if not re.match(r'\d+(\.\d+(\.\d+)?)?', version):
9494
raise ValueError('Invalid version {}'.format(version))
9595
result = ctx.run('git rev-parse HEAD', hide='out')
9696
sha = result.stdout.strip()

0 commit comments

Comments
 (0)