Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
13651123
Commit
13651123
authored
Feb 11, 2003
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fix up a docstring
- minor cleanup
parent
3c78d2ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/ZEO/util.py
src/ZEO/util.py
+3
-3
No files found.
src/ZEO/util.py
View file @
13651123
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# FOR A PARTICULAR PURPOSE
.
#
#
##############################################################################
##############################################################################
"""Utilities for setting up the server environment."""
"""Utilities for setting up the server environment."""
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
import
os
import
os
def
parentdir
(
p
,
n
=
1
):
def
parentdir
(
p
,
n
=
1
):
"""Return the
parent of p,
n levels up."""
"""Return the
ancestor of p from
n levels up."""
d
=
p
d
=
p
while
n
:
while
n
:
d
=
os
.
path
.
split
(
d
)[
0
]
d
=
os
.
path
.
dirname
(
d
)
if
not
d
or
d
==
'.'
:
if
not
d
or
d
==
'.'
:
d
=
os
.
getcwd
()
d
=
os
.
getcwd
()
n
-=
1
n
-=
1
...
...
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