prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Get rid of warning when using Scipy 0.10.x
  WARNING: scipy version = 0.10.0b2. We request version >=0.7.0 for the sparse code as it has bugs fixed in the sparse matrix code.
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `theano/sparse/__init__.py`
  Content:
  ```
  1 import sys
  2 try:
  3     import scipy
  4     enable_sparse = scipy.__version__ >= '0.7'
  5     if not enable_sparse:
  6         sys.stderr.write("WARNING: scipy version = %s."
  7                 " We request version >=0.7.0 for the sparse code as it has"
  8                 " bugs fixed in the sparse matrix code.\n" % scipy.__version__)
  9 except ImportError:
  10     enable_sparse = False
  11     sys.stderr.write("WARNING: scipy can't be imported."
  12             " We disable the sparse matrix code.")
  13 
  14 if enable_sparse:
  15     from basic import *
  16     import sharedvar
  17     from sharedvar import sparse_constructor as shared
  18 
  19
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/theano/sparse/__init__.py b/theano/sparse/__init__.py
  --- a/theano/sparse/__init__.py
  +++ b/theano/sparse/__init__.py
  @@ -1,7 +1,10 @@
  +from pkg_resources import parse_version as V
   import sys
  +
   try:
       import scipy
  -    enable_sparse = scipy.__version__ >= '0.7'
  +    enable_sparse = V(scipy.__version__) >= V('0.7')
  +
       if not enable_sparse:
           sys.stderr.write("WARNING: scipy version = %s."
                   " We request version >=0.7.0 for the sparse code as it has"
  
verification_info: {"golden_diff": "diff --git a/theano/sparse/__init__.py b/theano/sparse/__init__.py\n--- a/theano/sparse/__init__.py\n+++ b/theano/sparse/__init__.py\n@@ -1,7 +1,10 @@\n+from pkg_resources import parse_version as V\n import sys\n+\n try:\n     import scipy\n-    enable_sparse = scipy.__version__ >= '0.7'\n+    enable_sparse = V(scipy.__version__) >= V('0.7')\n+\n     if not enable_sparse:\n         sys.stderr.write(\"WARNING: scipy version = %s.\"\n                 \" We request version >=0.7.0 for the sparse code as it has\"\n", "issue": "Get rid of warning when using Scipy 0.10.x\nWARNING: scipy version = 0.10.0b2. We request version >=0.7.0 for the sparse code as it has bugs fixed in the sparse matrix code.\n\n", "before_files": [{"content": "import sys\ntry:\n    import scipy\n    enable_sparse = scipy.__version__ >= '0.7'\n    if not enable_sparse:\n        sys.stderr.write(\"WARNING: scipy version = %s.\"\n                \" We request version >=0.7.0 for the sparse code as it has\"\n                \" bugs fixed in the sparse matrix code.\\n\" % scipy.__version__)\nexcept ImportError:\n    enable_sparse = False\n    sys.stderr.write(\"WARNING: scipy can't be imported.\"\n            \" We disable the sparse matrix code.\")\n\nif enable_sparse:\n    from basic import *\n    import sharedvar\n    from sharedvar import sparse_constructor as shared\n\n", "path": "theano/sparse/__init__.py"}], "after_files": [{"content": "from pkg_resources import parse_version as V\nimport sys\n\ntry:\n    import scipy\n    enable_sparse = V(scipy.__version__) >= V('0.7')\n\n    if not enable_sparse:\n        sys.stderr.write(\"WARNING: scipy version = %s.\"\n                \" We request version >=0.7.0 for the sparse code as it has\"\n                \" bugs fixed in the sparse matrix code.\\n\" % scipy.__version__)\nexcept ImportError:\n    enable_sparse = False\n    sys.stderr.write(\"WARNING: scipy can't be imported.\"\n            \" We disable the sparse matrix code.\")\n\nif enable_sparse:\n    from basic import *\n    import sharedvar\n    from sharedvar import sparse_constructor as shared\n\n", "path": "theano/sparse/__init__.py"}]}