Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for fixErr (0.12 sec)

  1. src/io/fs/sub.go

    	}
    	if len(name) >= len(f.dir)+2 && name[len(f.dir)] == '/' && name[:len(f.dir)] == f.dir {
    		return name[len(f.dir)+1:], true
    	}
    	return "", false
    }
    
    // fixErr shortens any reported names in PathErrors by stripping f.dir.
    func (f *subFS) fixErr(err error) error {
    	if e, ok := err.(*PathError); ok {
    		if short, ok := f.shorten(e.Path); ok {
    			e.Path = short
    		}
    	}
    	return err
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 10 02:10:17 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. src/net/ipsock_plan9.go

    	if err != nil {
    		return
    	}
    	var buf [16]byte
    	n, err := f.Read(buf[:])
    	if err != nil {
    		f.Close()
    		return
    	}
    	return f, dest, proto, string(buf[:n]), nil
    }
    
    func fixErr(err error) {
    	oe, ok := err.(*OpError)
    	if !ok {
    		return
    	}
    	nonNilInterface := func(a Addr) bool {
    		switch a := a.(type) {
    		case *TCPAddr:
    			return a == nil
    		case *UDPAddr:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 20:38:53 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  3. src/cmd/fix/main.go

    		}
    		if fix.f(newFile) {
    			fixed = true
    			fmt.Fprintf(&fixlog, " %s", fix.name)
    
    			// AST changed.
    			// Print and parse, to update any missing scoping
    			// or position information for subsequent fixers.
    			newSrc, err := gofmtFile(newFile)
    			if err != nil {
    				return err
    			}
    			newFile, err = parser.ParseFile(fset, filename, newSrc, parserMode)
    			if err != nil {
    				if debug {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. src/cmd/go/internal/fix/fix.go

    		} else if pkg.Standard {
    			goVersion = build.Default.ReleaseTags[len(build.Default.ReleaseTags)-1]
    		}
    		var fixArg []string
    		if *fixes != "" {
    			fixArg = []string{"-r=" + *fixes}
    		}
    		base.Run(str.StringList(cfg.BuildToolexec, base.Tool("fix"), "-go="+goVersion, fixArg, files))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:52:29 UTC 2022
    - 2.2K bytes
    - Viewed (0)
  5. docs/pt/docs/deployment/versions.md

    Se tudo estiver funcionando, ou após você realizar as alterações necessárias e todos os testes estiverem passando, então você pode fixar sua versão de `FastAPI` para essa mais nova.
    
    ## Sobre Starlette
    
    Não é recomendado fixar a versão de `starlette`.
    
    Versões diferentes de **FastAPI** utilizarão uma versão específica e mais recente de Starlette.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Jul 29 20:14:40 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  6. .pre-commit-config.yaml

        rev: v4.4.0
        hooks:
        -   id: check-added-large-files
        -   id: check-toml
        -   id: check-yaml
            args:
            -   --unsafe
        -   id: end-of-file-fixer
        -   id: trailing-whitespace
    -   repo: https://github.com/charliermarsh/ruff-pre-commit
        rev: v0.2.0
        hooks:
        -   id: ruff
            args:
            - --fix
        -   id: ruff-format
    ci:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Mar 26 16:56:53 UTC 2024
    - 737 bytes
    - Viewed (0)
  7. src/os/exec/lp_windows.go

    				//
    				// Otherwise, return the ErrDot for the implicit path as soon as we find
    				// out that the explicit one doesn't match.
    				dotfi, dotfiErr := os.Lstat(dotf)
    				fi, fiErr := os.Lstat(f)
    				if dotfiErr != nil || fiErr != nil || !os.SameFile(dotfi, fi) {
    					return dotf, dotErr
    				}
    			}
    
    			if !filepath.IsAbs(f) {
    				if execerrdot.Value() != "0" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top