cthedot avatar cthedot committed 9ea2108

Comments (0)

Files changed (1)

     # ALL THE SAME:
     css = '@import "import/import2.css";a{background-image: url(x.gif)}'
     #s = cssutils.parseString(css, href='file:///I:/dev-workspace/cssutils/sheets/import.css')
-    s = cssutils.parse('..\\sheets\\import.css')
+    s = cssutils.parseFile('..\\sheets\\import.css')
     #s = cssutils.parseUrl('file:///I:/dev-workspace/cssutils/sheets/import.css')
     #s = cssutils.parseUrl('http://seewhatever.de/sheets/import.css')
 if 1:
-    defaultsheet = cssutils.parse('sheets/default_html4.css')
+    defaultsheet = cssutils.parseFile('sheets/default_html4.css')
     css = '''
         a { a: green; /* only here */
-    s = cssutils.parse('../sheets/1.css', encoding='ISO-8859-1')
+    s = cssutils.parseFile('../sheets/1.css', encoding='ISO-8859-1')
     cssutils.ser.prefs.keepComments = True
     print s.cssText
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.