Skip to content

Commit

Permalink
Revert specstr(::PipPkgSpec) to old short forum
Browse files Browse the repository at this point in the history
  • Loading branch information
dingraha committed Aug 2, 2023
1 parent b8b3c2c commit ff37133
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/spec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,4 @@ validate_pip_editable(editable, version) =
error("invalid pip version for editable install: must start with `@` but version is $(version)")
end

function specstr(x::PipPkgSpec)
return x.version == "" ? x.name : string(x.name, " ", x.version)
end
specstr(x::PipPkgSpec) = x.version == "" ? x.name : string(x.name, " ", x.version)

0 comments on commit ff37133

Please sign in to comment.