summaryrefslogtreecommitdiff
path: root/psutil/_pssunos.py
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-10-24 22:00:09 +0200
committerGitHub <noreply@github.com>2020-10-24 22:00:09 +0200
commit40abe5c0aa3e258161284b58cedcee1e11a66e75 (patch)
tree96634f3ad79e8ab2cbfbf13e54d94961475f1a91 /psutil/_pssunos.py
parent241f8ed0cd5c0c792a28e4e6479586a70587177c (diff)
downloadpsutil-40abe5c0aa3e258161284b58cedcee1e11a66e75.tar.gz
disk_partitions() maxfile and maxpath (#1863)
Diffstat (limited to 'psutil/_pssunos.py')
-rw-r--r--psutil/_pssunos.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/psutil/_pssunos.py b/psutil/_pssunos.py
index 62362b89..c64ea9ca 100644
--- a/psutil/_pssunos.py
+++ b/psutil/_pssunos.py
@@ -233,7 +233,9 @@ def disk_partitions(all=False):
# https://github.com/giampaolo/psutil/issues/1674
debug("skipping %r: %r" % (mountpoint, err))
continue
- ntuple = _common.sdiskpart(device, mountpoint, fstype, opts)
+ maxfile = maxpath = None # set later
+ ntuple = _common.sdiskpart(device, mountpoint, fstype, opts,
+ maxfile, maxpath)
retlist.append(ntuple)
return retlist