1# -*- coding: utf8 -*- 2""" 3.. module:: lesscpy.plib.property 4 :synopsis: Import node. 5 6 Copyright (c) 7 See LICENSE for details. 8.. moduleauthor:: Johann T. Mariusson <jtm@robot.is> 9""" 10from .node import Node 11 12 13class Import(Node): 14 """Represents CSS property declaration. 15 """ 16 17 def parse(self, scope): 18 """Parse node 19 args: 20 scope (Scope): current scope 21 raises: 22 SyntaxError 23 returns: 24 parsed 25 """ 26 if not self.parsed: 27 self.parsed = ''.join(self.process(self.tokens, scope)) 28 return self.parsed 29 30 def fmt(self, fills): 31 return '' 32 33 def copy(self): 34 """ Return a full copy of self 35 Returns: 36 Import object 37 """ 38 return Import([t for t in self.tokens], 0) 39