[tor-commits] [stem/master] expand_path() pydoc inaccurate

atagar at torproject.org atagar at torproject.org
Thu Jan 3 16:47:15 UTC 2013


commit 5ee4b1b67876dc1ddba9aa21dbec6ef8871a8ba6
Author: Damian Johnson <atagar at torproject.org>
Date:   Thu Jan 3 08:24:26 2013 -0800

    expand_path() pydoc inaccurate
    
    The pydocs for system.expand_path() said that it was unix specific. However,
    Beck expanded this to support Windows in 62e51e9 and others.
---
 stem/util/system.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/stem/util/system.py b/stem/util/system.py
index ed1fe4b..3c3abf4 100644
--- a/stem/util/system.py
+++ b/stem/util/system.py
@@ -513,14 +513,14 @@ def get_bsd_jail_id(pid):
 def expand_path(path, cwd = None):
   """
   Provides an absolute path, expanding tildes with the user's home and
-  appending a current working directory if the path was relative. This is
-  unix-specific and paths never have an ending slash.
+  appending a current working directory if the path was relative.
   
   :param str path: path to be expanded
   :param str cwd: current working directory to expand relative paths with, our
     process' if this is **None**
   
-  :returns: **str** of the path expanded to be an absolute path
+  :returns: **str** of the path expanded to be an absolute path, never with an
+    ending slash
   """
   
   if is_windows():





More information about the tor-commits mailing list