Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MetObsCommon
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MetObs
MetObsCommon
Commits
08e5d17d
Commit
08e5d17d
authored
Oct 23, 2019
by
William Roberts
Browse files
Options
Downloads
Patches
Plain Diff
Change string.replace to str.replace
parent
7e26307e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
metobscommon/util/raw_manager.py
+2
-2
2 additions, 2 deletions
metobscommon/util/raw_manager.py
with
2 additions
and
2 deletions
metobscommon/util/raw_manager.py
+
2
−
2
View file @
08e5d17d
...
...
@@ -20,8 +20,8 @@ def relativedir( a, b ):
a
=
os
.
path
.
abspath
(
a
)
b
=
os
.
path
.
abspath
(
b
)
pfx
=
os
.
path
.
dirname
(
os
.
path
.
commonprefix
(
[
a
,
b
]
)
)
+
os
.
sep
a
=
str
ing
.
replace
(
a
,
pfx
,
''
,
1
)
b
=
str
ing
.
replace
(
b
,
pfx
,
''
,
1
)
a
=
str
.
replace
(
a
,
pfx
,
''
,
1
)
b
=
str
.
replace
(
b
,
pfx
,
''
,
1
)
a
=
re
.
sub
(
core
,
'
..
'
,
a
)
return
os
.
path
.
join
(
a
,
b
)
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment