Skip to content

Commit

Permalink
JuliaRequirement: Remove flag and change doctest
Browse files Browse the repository at this point in the history
The flag was unneeded, as a bad one would probably
break stuff.
  • Loading branch information
Adrianzatreanu committed Jul 8, 2016
1 parent 9898109 commit 3a6d00c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions coalib/bears/requirements/JuliaRequirement.py
Expand Up @@ -7,25 +7,20 @@ class JuliaRequirement(PackageRequirement):
requirements from ``julia``, without using the manager name.
"""

def __init__(self, package, version="", flag=""):
def __init__(self, package, version=""):
"""
Constructs a new ``JuliaRequirement``, using the ``PackageRequirement``
constructor.
>>> pr = JuliaRequirement('"Pkg.add(\"Lint\")"', '19.2', '-e')
>>> pr = JuliaRequirement('Lint', '19.2')
>>> pr.manager
'julia'
>>> pr.package
'"Pkg.add(\"Lint\")"'
'Lint'
>>> pr.version
'19.2'
>>> pr.flag
'-e'
:param package: A string with the name of the package to be installed.
:param version: A version string. Leave empty to specify latest version.
:param flag: A string that specifies any additional flags, that
are passed to the manager.
"""
PackageRequirement.__init__(self, 'julia', package, version)
self.flag = flag

0 comments on commit 3a6d00c

Please sign in to comment.