diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-13 08:57:12 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-06-13 08:57:12 (GMT) |
| commit | 5164ba1fe94c156c0477e09dbcdf506032cedee3 (patch) | |
| tree | d106c4c491093a055990c1b43af9b1d3eca0458f /library/safe.tcl | |
| parent | 167b17afd33ac6f26b934d20678b73fc3a35aec7 (diff) | |
| download | tcl-5164ba1fe94c156c0477e09dbcdf506032cedee3.zip tcl-5164ba1fe94c156c0477e09dbcdf506032cedee3.tar.gz tcl-5164ba1fe94c156c0477e09dbcdf506032cedee3.tar.bz2 | |
Use tabs for indenting in stead of 8 spaces
Diffstat (limited to 'library/safe.tcl')
| -rw-r--r-- | library/safe.tcl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/library/safe.tcl b/library/safe.tcl index 71c1e67..e7044f8 100644 --- a/library/safe.tcl +++ b/library/safe.tcl @@ -376,7 +376,7 @@ proc ::safe::InterpSetConfig {child access_path staticsok nestedok deletehook} { # Prevent the addition of dirs on the tm list to the # result if they are already known. if {[dict exists $remap_access_path $dir]} { - if {$firstpass} { + if {$firstpass} { # $dir is in [::tcl::tm::list] and belongs in the slave_tm_path. # Later passes handle subdirectories, which belong in the # access path but not in the module path. @@ -596,9 +596,9 @@ proc ::safe::interpDelete {child} { # Safe Base sub-interpreter, so each one is deleted cleanly and not by # the automatic mechanism built into [interp delete]. foreach sub [interp children $child] { - if {[info exists ::safe::[VarName [list $child $sub]]]} { - ::safe::interpDelete [list $child $sub] - } + if {[info exists ::safe::[VarName [list $child $sub]]]} { + ::safe::interpDelete [list $child $sub] + } } # If the child has a cleanup hook registered, call it. Check the @@ -1192,14 +1192,14 @@ proc ::safe::AliasExeName {child} { proc ::safe::RejectExcessColons {child} { set stripped [regsub -all -- {:::*} $child ::] if {[string range $stripped end-1 end] eq {::}} { - return -code error {interpreter name must not end in "::"} + return -code error {interpreter name must not end in "::"} } if {$stripped ne $child} { - set msg {interpreter name has excess colons in namespace separators} - return -code error $msg + set msg {interpreter name has excess colons in namespace separators} + return -code error $msg } if {[string range $stripped 0 1] eq {::}} { - return -code error {interpreter name must not begin "::"} + return -code error {interpreter name must not begin "::"} } return } |
