Make pylint really happy ♥♥♥
This commit is contained in:
		
							parent
							
								
									bcf1cfcb1f
								
							
						
					
					
						commit
						d8a90a77c2
					
				| @ -32,22 +32,12 @@ Qubes OS | |||||||
| 
 | 
 | ||||||
| from __future__ import absolute_import | from __future__ import absolute_import | ||||||
| 
 | 
 | ||||||
|  | import __builtin__ | ||||||
| import collections | import collections | ||||||
| import errno |  | ||||||
| import grp |  | ||||||
| import logging |  | ||||||
| import os | import os | ||||||
| import os.path | import os.path | ||||||
| import sys |  | ||||||
| import tempfile |  | ||||||
| import time |  | ||||||
| 
 | 
 | ||||||
| import __builtin__ |  | ||||||
| 
 |  | ||||||
| import jinja2 |  | ||||||
| import lxml.etree | import lxml.etree | ||||||
| import pkg_resources |  | ||||||
| 
 |  | ||||||
| import qubes.config | import qubes.config | ||||||
| import qubes.events | import qubes.events | ||||||
| import qubes.exc | import qubes.exc | ||||||
| @ -439,7 +429,7 @@ class PropertyHolder(qubes.events.Emitter): | |||||||
|         propvalues = {} |         propvalues = {} | ||||||
| 
 | 
 | ||||||
|         all_names = set(prop.__name__ for prop in self.property_list()) |         all_names = set(prop.__name__ for prop in self.property_list()) | ||||||
|         for key in list(kwargs.keys()): |         for key in list(kwargs): | ||||||
|             if not key in all_names: |             if not key in all_names: | ||||||
|                 continue |                 continue | ||||||
|             propvalues[key] = kwargs.pop(key) |             propvalues[key] = kwargs.pop(key) | ||||||
|  | |||||||
							
								
								
									
										19
									
								
								qubes/app.py
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								qubes/app.py
									
									
									
									
									
								
							| @ -36,13 +36,14 @@ import tempfile | |||||||
| import time | import time | ||||||
| import uuid | import uuid | ||||||
| 
 | 
 | ||||||
| import jinja2 |  | ||||||
| import lxml.etree | import lxml.etree | ||||||
|  | 
 | ||||||
|  | import jinja2 | ||||||
| import libvirt | import libvirt | ||||||
| 
 | 
 | ||||||
| try: | try: | ||||||
|     import xen.lowlevel.xs |     import xen.lowlevel.xs  # pylint: disable=wrong-import-order | ||||||
|     import xen.lowlevel.xc |     import xen.lowlevel.xc  # pylint: disable=wrong-import-order | ||||||
| except ImportError: | except ImportError: | ||||||
|     pass |     pass | ||||||
| 
 | 
 | ||||||
| @ -58,12 +59,12 @@ else: | |||||||
|     raise RuntimeError("Qubes works only on POSIX or WinNT systems") |     raise RuntimeError("Qubes works only on POSIX or WinNT systems") | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| import qubes | import qubes  # pylint: disable=wrong-import-position | ||||||
| import qubes.ext | import qubes.ext  # pylint: disable=wrong-import-position | ||||||
| import qubes.utils | import qubes.utils  # pylint: disable=wrong-import-position | ||||||
| import qubes.vm.adminvm | import qubes.vm.adminvm  # pylint: disable=wrong-import-position | ||||||
| import qubes.vm.qubesvm | import qubes.vm.qubesvm  # pylint: disable=wrong-import-position | ||||||
| import qubes.vm.templatevm | import qubes.vm.templatevm  # pylint: disable=wrong-import-position | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class VirDomainWrapper(object): | class VirDomainWrapper(object): | ||||||
|  | |||||||
| @ -29,8 +29,8 @@ | |||||||
| .. warning:: API defined here is not declared stable. | .. warning:: API defined here is not declared stable. | ||||||
| ''' | ''' | ||||||
| 
 | 
 | ||||||
| import qubes.ext |  | ||||||
| import dbus | import dbus | ||||||
|  | import qubes.ext | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class QubesManager(qubes.ext.Extension): | class QubesManager(qubes.ext.Extension): | ||||||
|  | |||||||
| @ -29,11 +29,11 @@ import os | |||||||
| import re | import re | ||||||
| import subprocess | import subprocess | ||||||
| 
 | 
 | ||||||
|  | import pkg_resources | ||||||
|  | 
 | ||||||
| import docutils | import docutils | ||||||
| import docutils.core | import docutils.core | ||||||
| import docutils.io | import docutils.io | ||||||
| import pkg_resources |  | ||||||
| 
 |  | ||||||
| import qubes.exc | import qubes.exc | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -158,5 +158,3 @@ def get_entry_point_one(group, name): | |||||||
|                 ', '.join('{}.{}'.format(ep.module_name, '.'.join(ep.attrs)) |                 ', '.join('{}.{}'.format(ep.module_name, '.'.join(ep.attrs)) | ||||||
|                     for ep in epoints))) |                     for ep in epoints))) | ||||||
|     return epoints[0].load() |     return epoints[0].load() | ||||||
| 
 |  | ||||||
| 
 |  | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Bahtiar `kalkin-` Gadimov
						Bahtiar `kalkin-` Gadimov