Skip to content

Commit 319edb7

Browse files
drew-512sbinet
andauthored
Update modules/runtime.go
Co-authored-by: Sebastien Binet <binet@cern.ch>
1 parent 95afd7b commit 319edb7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

modules/runtime.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ func (ctx *ctx) ResolveAndCompile(pathname string, opts py.CompileOpts) (py.Comp
120120
return false, err
121121
}
122122

123-
if ext == ".py" {
123+
switch ext {
124+
case ".py":
124125
var pySrc []byte
125126
pySrc, err = ioutil.ReadFile(fpath)
126127
if err != nil {

0 commit comments

Comments
 (0)