File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ def copy_file( # noqa: C901
118
118
if update and not newer (src , dst ):
119
119
if verbose >= 1 :
120
120
log .debug ("not copying %s (output up-to-date)" , src )
121
- return (dst , 0 )
121
+ return (dst , False )
122
122
123
123
try :
124
124
action = _copy_action [link ]
@@ -132,7 +132,7 @@ def copy_file( # noqa: C901
132
132
log .info ("%s %s -> %s" , action , src , dst )
133
133
134
134
if dry_run :
135
- return (dst , 1 )
135
+ return (dst , True )
136
136
137
137
# If linking (hard or symbolic), use the appropriate system call
138
138
# (Unix only, of course, but that's the caller's responsibility)
@@ -146,11 +146,11 @@ def copy_file( # noqa: C901
146
146
# even under Unix, see issue #8876).
147
147
pass
148
148
else :
149
- return (dst , 1 )
149
+ return (dst , True )
150
150
elif link == 'sym' :
151
151
if not (os .path .exists (dst ) and os .path .samefile (src , dst )):
152
152
os .symlink (src , dst )
153
- return (dst , 1 )
153
+ return (dst , True )
154
154
155
155
# Otherwise (non-Mac, not linking), copy the file contents and
156
156
# (optionally) copy the times and mode.
@@ -165,7 +165,7 @@ def copy_file( # noqa: C901
165
165
if preserve_mode :
166
166
os .chmod (dst , S_IMODE (st [ST_MODE ]))
167
167
168
- return (dst , 1 )
168
+ return (dst , True )
169
169
170
170
171
171
# XXX I suspect this is Unix-specific -- need porting help!
You can’t perform that action at this time.
0 commit comments