summaryrefslogtreecommitdiffstats
path: root/src/vulkan/glsl_scraper.py
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2015-05-27 16:02:50 -0700
committerChad Versace <[email protected]>2015-05-27 16:04:12 -0700
commitdf4b02f4eda57842e790d5cade521ccdd0fd89e2 (patch)
treee2bec9e4990e71ac6082113b0c9f0b076dd079fa /src/vulkan/glsl_scraper.py
parentb23885857feec96ef4d57f34b0fcc06f58e7c49b (diff)
vk/glsl_scraper: Fix code style for imports
Python style is one module imported per line, and imports are at the top of the file.
Diffstat (limited to 'src/vulkan/glsl_scraper.py')
-rw-r--r--src/vulkan/glsl_scraper.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/vulkan/glsl_scraper.py b/src/vulkan/glsl_scraper.py
index ca5bad4a8a1..d476b3c0947 100644
--- a/src/vulkan/glsl_scraper.py
+++ b/src/vulkan/glsl_scraper.py
@@ -1,5 +1,14 @@
#! /usr/bin/env python
+import cStringIO
+import os
+import re
+import shutil
+import struct
+import subprocess
+import sys
+import tempfile
+
def print_usage(err):
print """\
glsl_scraper.py [options] file
@@ -16,8 +25,6 @@ Options:
--with-glslang=PATH Full path to the glslangValidator program"""
exit(err)
-import os, sys, re, cStringIO, tempfile, subprocess, struct, shutil
-
class Shader:
def __init__(self, stage):
self.stream = cStringIO.StringIO()