
import sys, string

from fn import F

import biobox_cli.util.misc       as util
import biobox_cli.util.functional as fn

def run():
    args = input_args()
    opts = util.parse_docopt(__doc__, args, True)
    util.select_module("command", opts["<command>"]).run(args)

def input_args():
    """
    Get command line args excluding those consisting of only whitespace
    """
    return fn.thread([
        sys.argv[1:],
        F(map, string.strip),
        F(filter, fn.is_not_empty)])


import sys

from fn import F

import biobox_cli.util.misc       as util
import biobox_cli.util.functional as fn

def run():
    args = input_args()
    opts = util.parse_docopt(__doc__, args, True)
    util.select_module("command", opts["<command>"]).run(args)

def input_args():
    """
    Get command line args excluding those consisting of only whitespace
    """
    return fn.thread([
        sys.argv[1:],
        F(map, str.strip),
        F(filter, fn.is_not_empty)])

Use str methods instead of string module
Use str methods instead of string module

  
- import sys, string
+ import sys
  
  from fn import F
  
  import biobox_cli.util.misc       as util
  import biobox_cli.util.functional as fn
  
  def run():
      args = input_args()
      opts = util.parse_docopt(__doc__, args, True)
      util.select_module("command", opts["<command>"]).run(args)
  
  def input_args():
      """
      Get command line args excluding those consisting of only whitespace
      """
      return fn.thread([
          sys.argv[1:],
-         F(map, string.strip),
+         F(map, str.strip),
          F(filter, fn.is_not_empty)])
  
Use str methods instead of string module
## Code Before:

import sys, string

from fn import F

import biobox_cli.util.misc       as util
import biobox_cli.util.functional as fn

def run():
    args = input_args()
    opts = util.parse_docopt(__doc__, args, True)
    util.select_module("command", opts["<command>"]).run(args)

def input_args():
    """
    Get command line args excluding those consisting of only whitespace
    """
    return fn.thread([
        sys.argv[1:],
        F(map, string.strip),
        F(filter, fn.is_not_empty)])

## Instruction:
Use str methods instead of string module
## Code After:

import sys

from fn import F

import biobox_cli.util.misc       as util
import biobox_cli.util.functional as fn

def run():
    args = input_args()
    opts = util.parse_docopt(__doc__, args, True)
    util.select_module("command", opts["<command>"]).run(args)

def input_args():
    """
    Get command line args excluding those consisting of only whitespace
    """
    return fn.thread([
        sys.argv[1:],
        F(map, str.strip),
        F(filter, fn.is_not_empty)])
