diff --git a/clint/resources.py b/clint/resources.py index 27ad10a..b482750 100644 --- a/clint/resources.py +++ b/clint/resources.py @@ -39,7 +39,7 @@ class AppDir(object): def __repr__(self): return '' % (self.path) - + def __getattribute__(self, name): @@ -53,11 +53,11 @@ class AppDir(object): """Raises if operations are carried out on an unconfigured AppDir.""" if not self.path: raise NotConfigured() - + def _create(self): """Creates current AppDir at AppDir.path.""" - + self._raise_if_none() if not self._exists: mkdir_p(self.path) @@ -66,7 +66,7 @@ class AppDir(object): def open(self, filename, mode='r'): """Returns file object from given filename.""" - + self._raise_if_none() fn = path_join(self.path, filename) @@ -121,11 +121,11 @@ class AppDir(object): else: raise why - + def read(self, filename, binary=False): """Returns contents of given file with AppDir. If file doesn't exist, returns None.""" - + self._raise_if_none() fn = path_join(self.path, filename) @@ -161,11 +161,11 @@ log = AppDir() def init(vendor, name): global user, site, cache, log - + ad = AppDirs(name, vendor) user.path = ad.user_data_dir - + site.path = ad.site_data_dir cache.path = ad.user_cache_dir log.path = ad.user_log_dir diff --git a/clint/textui/core.py b/clint/textui/core.py index 90978c6..8ef3e31 100644 --- a/clint/textui/core.py +++ b/clint/textui/core.py @@ -62,14 +62,14 @@ class Writer(object): def __call__(self, s, newline=True, stream=STDOUT): - + if newline: s = tsplit(s, NEWLINES) s = map(str, s) indent = ''.join(self.shared['indent_strings']) - + s = (str('\n' + indent)).join(s) - + _str = ''.join(( ''.join(self.shared['indent_strings']), str(s),