forked from ungleich-public/cdist
		
	Make pycodestyle pipeline happy
This commit is contained in:
		
					parent
					
						
							
								ba90651052
							
						
					
				
			
			
				commit
				
					
						21dd500c05
					
				
			
		
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -33,14 +33,15 @@ try:
 | 
				
			||||||
    import cdist.version
 | 
					    import cdist.version
 | 
				
			||||||
    VERSION = cdist.version.VERSION
 | 
					    VERSION = cdist.version.VERSION
 | 
				
			||||||
except ModuleNotFoundError:
 | 
					except ModuleNotFoundError:
 | 
				
			||||||
    cdist_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir))
 | 
					    cdist_dir = os.path.abspath(
 | 
				
			||||||
 | 
					        os.path.join(os.path.dirname(__file__), os.pardir))
 | 
				
			||||||
    if os.path.isdir(os.path.join(cdist_dir, '.git')):
 | 
					    if os.path.isdir(os.path.join(cdist_dir, '.git')):
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            VERSION = subprocess.check_output(
 | 
					            VERSION = subprocess.check_output(
 | 
				
			||||||
                ['git', 'describe', '--always'],
 | 
					                ['git', 'describe', '--always'],
 | 
				
			||||||
                cwd=cdist_dir,
 | 
					                cwd=cdist_dir,
 | 
				
			||||||
                universal_newlines=True)
 | 
					                universal_newlines=True)
 | 
				
			||||||
        except:
 | 
					        except Exception:
 | 
				
			||||||
            pass
 | 
					            pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
BANNER = """
 | 
					BANNER = """
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue