The brew versions command has been removed. The instructions are no longer valid.
Make sure you don't have any Python 3.x installed:
$ brew uninstall python3
Then cd into your brew directory, this is /usr/local normally:
| cmd := exec.Command(commandPath, "foo", bar, spam) | |
| if len(egg) > 0 { | |
| cmd.Args = append(cmd.Args, egg) | |
| } |
| func UnzipMultipartFile(f *multipart.FileHeader) (map[string]*bytes.Buffer, error) { | |
| file, err := f.Open() | |
| if err != nil { | |
| return nil, err | |
| } | |
| defer file.Close() | |
| size, err := file.Seek(0, 2) | |
| if err != nil { | |
| return nil, err | |
| } |
| // Copyright 2014 gandalf authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file. | |
| package multipartzip | |
| import ( | |
| "archive/zip" | |
| "bytes" | |
| "io" |
| // Copyright 2014 gandalf authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style | |
| // license that can be found in the LICENSE file. | |
| package multipartzip | |
| import ( | |
| "fmt" | |
| "io/ioutil" |
| var maxMemory int | |
| func maxMemoryValue() int { | |
| if maxMemory > 0 { | |
| return maxMemory | |
| } | |
| var err error | |
| maxMemory, err = config.GetInt("api:request:maxMemory") | |
| if err != nil { | |
| panic("You should configure a api:request:maxMemory for gandalf.") |
| var bare string | |
| func bareLocation() string { | |
| if bare != "" { | |
| return bare | |
| } | |
| var err error | |
| bare, err = config.GetString("git:bare:location") | |
| if err != nil { | |
| panic("You should configure a git:bare:location for gandalf.") |
| var tempDir string | |
| func tempDirLocation() string { | |
| if tempDir == "" { | |
| tempDir, _ = config.GetString("repository:tempDir") | |
| } | |
| return tempDir | |
| } |
| var maxMemory int | |
| func maxMemoryValue() int { | |
| if maxMemory <= 0 { | |
| maxMemory, _ = config.GetInt("api:request:maxMemory") | |
| } | |
| return maxMemory | |
| } |
| #!/usr/bin/env fish | |
| # vim: set ft=sh: | |
| # Pure | |
| # by Rafael Rinaldi | |
| # https://github.com/rafaelrinaldi/pure | |
| # MIT License | |
| # Whether or not is a fresh session | |
| set -g fresh_session 1 |