diff options
author | Scott Moser <smoser@ubuntu.com> | 2012-01-17 15:22:47 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2012-01-17 15:22:47 -0500 |
commit | d778a9e6e070d7aa989e49cc517e5087d1a4c795 (patch) | |
tree | 46e7f4f1cbc89fa6f0a9f2775b60082424c62ef3 /cloudinit/CloudConfig/cc_mounts.py | |
parent | b058de97fd80f0e9bee3eeaa26ab2a83404d77e6 (diff) | |
download | vyos-cloud-init-d778a9e6e070d7aa989e49cc517e5087d1a4c795.tar.gz vyos-cloud-init-d778a9e6e070d7aa989e49cc517e5087d1a4c795.zip |
remove need for global pylint disable of W0402
This is actually a pylint bug, but it considers use of string.letters
and string.whitespace deprecated.
Diffstat (limited to 'cloudinit/CloudConfig/cc_mounts.py')
-rw-r--r-- | cloudinit/CloudConfig/cc_mounts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig/cc_mounts.py b/cloudinit/CloudConfig/cc_mounts.py index dbd9c454..2fa57362 100644 --- a/cloudinit/CloudConfig/cc_mounts.py +++ b/cloudinit/CloudConfig/cc_mounts.py @@ -18,7 +18,7 @@ import cloudinit.util as util import os import re -import string +from string import whitespace # pylint: disable=W0402 def is_mdname(name): @@ -139,7 +139,7 @@ def handle(_name, cfg, cloud, log, _args): fstab_lines = [] fstab = open("/etc/fstab", "r+") - ws = re.compile("[%s]+" % string.whitespace) + ws = re.compile("[%s]+" % whitespace) for line in fstab.read().splitlines(): try: toks = ws.split(line) |