removed match to allow older python versions
This commit is contained in:
		
							parent
							
								
									14ac53f4af
								
							
						
					
					
						commit
						59213e8145
					
				
							
								
								
									
										19
									
								
								patch_xkb.py
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								patch_xkb.py
									
									
									
									
									
								
							@ -10,16 +10,15 @@ def brackets(text):
 | 
				
			|||||||
    res = 0
 | 
					    res = 0
 | 
				
			||||||
    slash = 0
 | 
					    slash = 0
 | 
				
			||||||
    for i in text:
 | 
					    for i in text:
 | 
				
			||||||
        match i:
 | 
					        if i == "/":
 | 
				
			||||||
            case "/":
 | 
					            slash += 1
 | 
				
			||||||
                slash += 1
 | 
					            if slash == 2:
 | 
				
			||||||
                if slash == 2:
 | 
					                break
 | 
				
			||||||
                    break
 | 
					            continue
 | 
				
			||||||
                continue
 | 
					        if i == "{":
 | 
				
			||||||
            case "{":
 | 
					            res += 1
 | 
				
			||||||
                res += 1
 | 
					        if i == "}":
 | 
				
			||||||
            case "}":
 | 
					            res -= 1
 | 
				
			||||||
                res -= 1
 | 
					 | 
				
			||||||
        slash = 0
 | 
					        slash = 0
 | 
				
			||||||
    return res
 | 
					    return res
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user