daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Jun 13th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff /tmp/p.py /tmp/p1.py
  2. 174a175
  3. >     'transform' : 'eatTransform',
  4. 2475a2477,2500
  5. >
  6. >     def eatTransform(self):
  7. >         isLineClearToStartToken = self.isLineClearToStartToken()
  8. >         endOfFirstLinePos = self.findEOL()
  9. >
  10. >         self.getDirectiveStartToken()
  11. >         self.advance(len('transform'))
  12. >         self.getWhiteSpace()
  13. >         startPos = self.pos()
  14. >         if self.matchCheetahVarStart():
  15. >             isKlass = True
  16. >             transformer = self.getExpression(pyTokensToBreakAt=[':'])
  17. >         else:
  18. >             isKlass = False
  19. >             transformer = self.getIdentifier()
  20. >             self.getWhiteSpace()
  21. >         transformer = self._applyExpressionFilters(transformer, 'transform', startPos=startPos)
  22. >
  23. >         if self.peek()==':':
  24. >             self.advance()
  25. >         self.getWhiteSpace()
  26. >         self._eatRestOfDirectiveTag(isLineClearToStartToken, endOfFirstLinePos)
  27. >         self._compiler.setTransform(transformer, isKlass)
  28. >
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top