Skip to content

Commit

Permalink
Fixing import format in thirdparty libraries to separate local imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayunit100 authored and jay vyas committed Nov 24, 2015
1 parent 0798915 commit 9c673c3
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 20 deletions.
3 changes: 2 additions & 1 deletion third_party/golang/go/ast/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ package ast

import (
"fmt"
"k8s.io/kubernetes/third_party/golang/go/token"
"io"
"os"
"reflect"

"k8s.io/kubernetes/third_party/golang/go/token"
)

// A FieldFilter may be provided to Fprint to control the output.
Expand Down
1 change: 1 addition & 0 deletions third_party/golang/go/ast/scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ package ast
import (
"bytes"
"fmt"

"k8s.io/kubernetes/third_party/golang/go/token"
)

Expand Down
9 changes: 5 additions & 4 deletions third_party/golang/go/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ import (
"bytes"
"errors"
"fmt"
"k8s.io/kubernetes/third_party/golang/go/ast"
"k8s.io/kubernetes/third_party/golang/go/doc"
"k8s.io/kubernetes/third_party/golang/go/parser"
"k8s.io/kubernetes/third_party/golang/go/token"
"io"
"io/ioutil"
"log"
Expand All @@ -24,6 +20,11 @@ import (
"strings"
"unicode"
"unicode/utf8"

"k8s.io/kubernetes/third_party/golang/go/ast"
"k8s.io/kubernetes/third_party/golang/go/doc"
"k8s.io/kubernetes/third_party/golang/go/parser"
"k8s.io/kubernetes/third_party/golang/go/token"
)

// A Context specifies the supporting context for a build.
Expand Down
7 changes: 4 additions & 3 deletions third_party/golang/go/doc/doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,17 @@ import (
"bytes"
"flag"
"fmt"
"k8s.io/kubernetes/third_party/golang/go/parser"
"k8s.io/kubernetes/third_party/golang/go/printer"
"k8s.io/kubernetes/third_party/golang/go/token"
"io/ioutil"
"os"
"path/filepath"
"regexp"
"strings"
"testing"
"text/template"

"k8s.io/kubernetes/third_party/golang/go/parser"
"k8s.io/kubernetes/third_party/golang/go/printer"
"k8s.io/kubernetes/third_party/golang/go/token"
)

var update = flag.Bool("update", false, "update golden (.out) files")
Expand Down
5 changes: 3 additions & 2 deletions third_party/golang/go/parser/error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@
package parser

import (
"k8s.io/kubernetes/third_party/golang/go/scanner"
"k8s.io/kubernetes/third_party/golang/go/token"
"io/ioutil"
"path/filepath"
"regexp"
"strings"
"testing"

"k8s.io/kubernetes/third_party/golang/go/scanner"
"k8s.io/kubernetes/third_party/golang/go/token"
)

const testdata = "testdata"
Expand Down
5 changes: 3 additions & 2 deletions third_party/golang/go/parser/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ package parser
import (
"bytes"
"errors"
"k8s.io/kubernetes/third_party/golang/go/ast"
"k8s.io/kubernetes/third_party/golang/go/token"
"io"
"io/ioutil"
"os"
"path/filepath"
"strings"

"k8s.io/kubernetes/third_party/golang/go/ast"
"k8s.io/kubernetes/third_party/golang/go/token"
)

// If src != nil, readSource converts src to a []byte if possible;
Expand Down
3 changes: 2 additions & 1 deletion third_party/golang/go/parser/performance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
package parser

import (
"k8s.io/kubernetes/third_party/golang/go/token"
"io/ioutil"
"testing"

"k8s.io/kubernetes/third_party/golang/go/token"
)

var src = readFile("parser.go")
Expand Down
5 changes: 3 additions & 2 deletions third_party/golang/go/printer/performance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ package printer

import (
"bytes"
"k8s.io/kubernetes/third_party/golang/go/ast"
"k8s.io/kubernetes/third_party/golang/go/parser"
"io"
"io/ioutil"

"k8s.io/kubernetes/third_party/golang/go/ast"
"k8s.io/kubernetes/third_party/golang/go/parser"
"log"
"testing"
)
Expand Down
5 changes: 3 additions & 2 deletions third_party/golang/go/printer/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ package printer

import (
"fmt"
"k8s.io/kubernetes/third_party/golang/go/ast"
"k8s.io/kubernetes/third_party/golang/go/token"
"io"
"os"
"strconv"
"strings"
"text/tabwriter"
"unicode"

"k8s.io/kubernetes/third_party/golang/go/ast"
"k8s.io/kubernetes/third_party/golang/go/token"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion third_party/golang/go/scanner/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ package scanner

import (
"fmt"
"k8s.io/kubernetes/third_party/golang/go/token"
"io"
"sort"

"k8s.io/kubernetes/third_party/golang/go/token"
)

// In an ErrorList, an error is represented by an *Error.
Expand Down
3 changes: 2 additions & 1 deletion third_party/golang/go/scanner/scanner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
package scanner

import (
"k8s.io/kubernetes/third_party/golang/go/token"
"io/ioutil"
"os"
"path/filepath"
"runtime"
"testing"

"k8s.io/kubernetes/third_party/golang/go/token"
)

var fset = token.NewFileSet()
Expand Down
3 changes: 2 additions & 1 deletion third_party/golang/go/types/scope.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ package types
import (
"bytes"
"fmt"
"k8s.io/kubernetes/third_party/golang/go/token"
"io"
"sort"
"strings"

"k8s.io/kubernetes/third_party/golang/go/token"
)

// TODO(gri) Provide scopes with a name or other mechanism so that
Expand Down

0 comments on commit 9c673c3

Please sign in to comment.