diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/tabular_predDB/HadoopEngine.py b/tabular_predDB/HadoopEngine.py index <HASH>..<HASH> 100644 --- a/tabular_predDB/HadoopEngine.py +++ b/tabular_predDB/HadoopEngine.py @@ -26,7 +26,7 @@ default_hdfs_uri = "hdfs://xd-namenode.xdata.data-tactics-corp.com:8020/" default_which_hadoop_jar = "/usr/lib/hadoop-0.20...
don't subclass undefined EngineTemplate
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ with open('README.rst') as readme: setup( name = 'datapackage', - version = '0.4.2', + version = '0.4.3', url = 'https://github.com/tryggvib/datapackage', license = 'GPLv3', descript...
Patch version <I> * Remove decode() error for accentuated data packages
py
diff --git a/test/test_bits.py b/test/test_bits.py index <HASH>..<HASH> 100644 --- a/test/test_bits.py +++ b/test/test_bits.py @@ -594,6 +594,6 @@ class Lsb0Interpretations(unittest.TestCase): bitstring.set_lsb0(False) def testUint(self): - a = Bits(bytes([1])) + a = Bits('0x01') ...
Fixing failing test in Python <I>.
py
diff --git a/src/python/atomistica/aseinterface.py b/src/python/atomistica/aseinterface.py index <HASH>..<HASH> 100755 --- a/src/python/atomistica/aseinterface.py +++ b/src/python/atomistica/aseinterface.py @@ -282,8 +282,9 @@ class Atomistica(Calculator): def set_mask(self, mask): - self.mask = mask - ...
MAINT: Actually check whether mask has changed
py
diff --git a/Corrfunc/utils.py b/Corrfunc/utils.py index <HASH>..<HASH> 100644 --- a/Corrfunc/utils.py +++ b/Corrfunc/utils.py @@ -836,7 +836,7 @@ def gridlink_sphere(thetamax, sphere_grid = np.zeros(totncells, dtype=grid_dtype) ra_binsizes = ra_diff/num_ra_cells - start = 0L + start = 0 for idec...
Fixed code quality issue raised by landscape [ci skip]
py
diff --git a/src/django_markup/markup.py b/src/django_markup/markup.py index <HASH>..<HASH> 100644 --- a/src/django_markup/markup.py +++ b/src/django_markup/markup.py @@ -70,7 +70,7 @@ class MarkupFormatter(object): ''' filter_fallback = getattr(settings, 'MARKUP_FILTER_FALLBACK', False) - if...
Less aggressive empty-filter detection system implemented.
py
diff --git a/pypeerassets/protocol.py b/pypeerassets/protocol.py index <HASH>..<HASH> 100644 --- a/pypeerassets/protocol.py +++ b/pypeerassets/protocol.py @@ -234,6 +234,14 @@ class CardTransfer: return proto + def __str__(self): + + r = [] + for key in self.__dict__: + r.append...
add str representation of CardTransfer object.
py
diff --git a/openquake/commonlib/oqvalidation.py b/openquake/commonlib/oqvalidation.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/oqvalidation.py +++ b/openquake/commonlib/oqvalidation.py @@ -902,6 +902,15 @@ class OqParam(valid.ParamSet): ('classical', 'disaggregation')) return not inv...
Raised an error for soil_intensities with amplification_method != convolution
py
diff --git a/distutils/cygwinccompiler.py b/distutils/cygwinccompiler.py index <HASH>..<HASH> 100644 --- a/distutils/cygwinccompiler.py +++ b/distutils/cygwinccompiler.py @@ -354,3 +354,9 @@ def is_cygwincc(cc): out_string = check_output(shlex.split(cc) + ['-dumpmachine']) return out_string.strip().endswith(b...
Restore 'get_versions' attribute, allowing older mpi4py to monkeypatch it. Fixes pypa/setuptools#<I>.
py
diff --git a/pysat/utils/time.py b/pysat/utils/time.py index <HASH>..<HASH> 100644 --- a/pysat/utils/time.py +++ b/pysat/utils/time.py @@ -257,3 +257,16 @@ def filter_datetime_input(date): out_date = dt.datetime(date.year, date.month, date.day) return out_date + +def today(): + """Returns today's...
ENH: moved today method to time utils Moved the Instrument `today` method to `utils.time` as a function.
py
diff --git a/pymatbridge/matlab_magic.py b/pymatbridge/matlab_magic.py index <HASH>..<HASH> 100644 --- a/pymatbridge/matlab_magic.py +++ b/pymatbridge/matlab_magic.py @@ -5,11 +5,6 @@ matlab_magic Magic command interface for interactive work with Matlab(R) via the pymatbridge - -Note -==== -Thanks to Max Jaderberg...
Update matlab_magic.py DOC: Moved Thanks to Max to README
py
diff --git a/jawa/attribute.py b/jawa/attribute.py index <HASH>..<HASH> 100644 --- a/jawa/attribute.py +++ b/jawa/attribute.py @@ -77,7 +77,7 @@ class AttributeTable(object): of type `name`, or :class:~jawa.attribute.UnknownAttribute if none is found. """ - return get_attribute_classes...
Load the attribute definitions once on module loading instead of constantly re-querying on each attribute load. Ick, globals.
py
diff --git a/travis_docs_builder.py b/travis_docs_builder.py index <HASH>..<HASH> 100644 --- a/travis_docs_builder.py +++ b/travis_docs_builder.py @@ -165,7 +165,9 @@ def commit_docs(*, built_docs='docs/_build/html', gh_pages_docs='docs', tmp_dir= print("Moving built docs into place") shutil.copytree(built_...
Don't fail if the gh-pages docs don't exist
py
diff --git a/pyquil/api/job.py b/pyquil/api/job.py index <HASH>..<HASH> 100644 --- a/pyquil/api/job.py +++ b/pyquil/api/job.py @@ -118,6 +118,34 @@ class Job(object): if self.is_queued(): return ROUND_TRIP_JOB_TIME * self.position_in_queue() + def running_time(self): + """ + For...
Fixed issue #<I>: nice API for job running time and time in queue (#<I>) * added convenience functions for job running time and time in queue * added cast to float with some exception handling
py
diff --git a/test/vtgatev3_test.py b/test/vtgatev3_test.py index <HASH>..<HASH> 100755 --- a/test/vtgatev3_test.py +++ b/test/vtgatev3_test.py @@ -228,7 +228,8 @@ def tearDownModule(): if utils.options.skip_teardown: return logging.debug('Tearing down the servers and setup') - keyspace_env.teardown() + if ...
vtgatev3_test.py: Fix teardown exception when keyspace_env is None. This happens when the test exits early because a previous test was not cleaned up correctly.
py
diff --git a/tensorforce/examples/openai_gym.py b/tensorforce/examples/openai_gym.py index <HASH>..<HASH> 100644 --- a/tensorforce/examples/openai_gym.py +++ b/tensorforce/examples/openai_gym.py @@ -65,9 +65,12 @@ def main(): if args.network_config: config.read_json(args.network_config) - stack = bui...
made preprocessing optional in openai_gym example
py
diff --git a/lenstronomy/Extensions/Itterative/iterative_psf.py b/lenstronomy/Extensions/Itterative/iterative_psf.py index <HASH>..<HASH> 100644 --- a/lenstronomy/Extensions/Itterative/iterative_psf.py +++ b/lenstronomy/Extensions/Itterative/iterative_psf.py @@ -38,7 +38,7 @@ class PSF_iterative(object): x_gri...
bug fixed in psf reconstruction with masking of other point sources
py
diff --git a/sklearn_evaluation/report.py b/sklearn_evaluation/report.py index <HASH>..<HASH> 100644 --- a/sklearn_evaluation/report.py +++ b/sklearn_evaluation/report.py @@ -3,10 +3,14 @@ import plots from cStringIO import StringIO import base64 import os -import mistune from datetime import datetime from utils i...
adds exception when trying to use the report module without mistune installed
py
diff --git a/bika/lims/browser/analysisrequest/analysisrequests.py b/bika/lims/browser/analysisrequest/analysisrequests.py index <HASH>..<HASH> 100644 --- a/bika/lims/browser/analysisrequest/analysisrequests.py +++ b/bika/lims/browser/analysisrequest/analysisrequests.py @@ -747,12 +747,8 @@ class AnalysisRequestsView(B...
Remove invalid transitions when ARs are filtered by unassigned
py
diff --git a/__init__.py b/__init__.py index <HASH>..<HASH> 100644 --- a/__init__.py +++ b/__init__.py @@ -9,3 +9,5 @@ used from a setup script as """ __revision__ = "$Id$" + +__version__ = "0.8"
Added __version__ to store the Distutils version number.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ long_description = UltraMagicString(u'\n\n'.join(( setup( name = 'django-autofixture', - version = '0.3.0pre', + version = '0.3.0', url = 'https://github.com/gregmuellegger/django-autofixture'...
Preparing <I> release.
py
diff --git a/spacy/orth.py b/spacy/orth.py index <HASH>..<HASH> 100644 --- a/spacy/orth.py +++ b/spacy/orth.py @@ -146,7 +146,7 @@ def word_shape(string): else: seq = 0 last = shape_char - if seq < 5: + if seq < 4: shape.append(shape_char) return ''.joi...
* Refine word_shape feature, by trimming the max sequence length
py
diff --git a/python_utils/converters.py b/python_utils/converters.py index <HASH>..<HASH> 100644 --- a/python_utils/converters.py +++ b/python_utils/converters.py @@ -1,8 +1,9 @@ import re -def to_int(input, default=0, exception=(ValueError, TypeError), regexp=None): - '''Convert the given input to an integer o...
renamed input to input_ to prevent colisions with built-in
py
diff --git a/pygal/graph/graph.py b/pygal/graph/graph.py index <HASH>..<HASH> 100644 --- a/pygal/graph/graph.py +++ b/pygal/graph/graph.py @@ -47,8 +47,8 @@ class Graph(BaseGraph): def _axes(self): """Draw axes""" - self._x_axis() self._y_axis() + self._x_axis() def _set_vi...
Reorders axes in SVG output. Fix #<I> Currently pygal renders the x-axis before the y-axis, but this means that because of the painters algorithm, the horizontal guide lines of the y-axis are above the y-axis line (which is actually an x-axis guide). If you have custom css that changes the colours of horizontal guide ...
py
diff --git a/angr/cfg.py b/angr/cfg.py index <HASH>..<HASH> 100644 --- a/angr/cfg.py +++ b/angr/cfg.py @@ -80,7 +80,8 @@ class CFG(CFGBase): loaded_state = self._project.initial_state(mode="static", add_options={simuvex.o.ABSTRACT_MEMORY, simuvex.o.A...
use stack_size and initial_sp to initialize SimAbstractMemory instead of reading default value of sp.
py
diff --git a/tests/test_query.py b/tests/test_query.py index <HASH>..<HASH> 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -5,13 +5,6 @@ from datetime import datetime as dt class TestIncident(unittest.TestCase): - def test_query_no_field(self): - try: - q = str(pysnow.QueryBuild...
Added test for QueryExpressionError
py
diff --git a/cleverhans/attacks.py b/cleverhans/attacks.py index <HASH>..<HASH> 100644 --- a/cleverhans/attacks.py +++ b/cleverhans/attacks.py @@ -254,12 +254,9 @@ class FastGradientMethod(Attack): else: from .attacks_th import fgm - if self.y is not None: - y = self.y - ...
Use improved parsing interface for FGM class
py
diff --git a/dvc/cli.py b/dvc/cli.py index <HASH>..<HASH> 100644 --- a/dvc/cli.py +++ b/dvc/cli.py @@ -762,14 +762,21 @@ def parse_args(argv=None): help='Output DAG as ASCII.') pipeline_show_parser.add_argument( 'targets', - nargs='+', - ...
pipeline: use Dvcfile by default Fixes #<I>
py
diff --git a/master/buildbot/www/oauth2.py b/master/buildbot/www/oauth2.py index <HASH>..<HASH> 100644 --- a/master/buildbot/www/oauth2.py +++ b/master/buildbot/www/oauth2.py @@ -108,7 +108,8 @@ class OAuth2Auth(auth.AuthBase): if redirect_url is not None: oauth_params['state'] = urlencode(dict(re...
Sort the oauth params before calling urlencode. This makes the URL consistent on Python 2 and 3.
py
diff --git a/test/unit/test_service_models.py b/test/unit/test_service_models.py index <HASH>..<HASH> 100644 --- a/test/unit/test_service_models.py +++ b/test/unit/test_service_models.py @@ -351,7 +351,8 @@ class GoogleSafeBrowsingTest(UrlTesterTestMixin, unittest.TestCase): @parameterized.expand([ ...
Add test for unathorized call to GoogleSafeBrowsing.filter_matching
py
diff --git a/src/ossos-pipeline/ossos/astrom.py b/src/ossos-pipeline/ossos/astrom.py index <HASH>..<HASH> 100644 --- a/src/ossos-pipeline/ossos/astrom.py +++ b/src/ossos-pipeline/ossos/astrom.py @@ -902,6 +902,9 @@ class Observation(object): # TODO Remove get_image_uri from here, use the storage methods. de...
Hardcoded that p images are not in a CCD directory: TODO Fix this better
py
diff --git a/coconut/compiler.py b/coconut/compiler.py index <HASH>..<HASH> 100644 --- a/coconut/compiler.py +++ b/coconut/compiler.py @@ -1434,6 +1434,8 @@ class processor(object): raise CoconutException("invalid string start code", line) elif c in holds: ...
Fixes handling of comments in reindent
py
diff --git a/pyghmi/ipmi/oem/lenovo/handler.py b/pyghmi/ipmi/oem/lenovo/handler.py index <HASH>..<HASH> 100755 --- a/pyghmi/ipmi/oem/lenovo/handler.py +++ b/pyghmi/ipmi/oem/lenovo/handler.py @@ -611,7 +611,7 @@ class OEMHandler(generic.OEMHandler): elif self.is_fpc: return nextscale.get_fpc_firmwa...
Fix lenovo generic fallback Wrong number of arguments are sent in such a case Change-Id: Icbb<I>b8d3ef<I>e1a<I>baeedf<I>bf<I>fabf
py
diff --git a/audit_log/models/managers.py b/audit_log/models/managers.py index <HASH>..<HASH> 100755 --- a/audit_log/models/managers.py +++ b/audit_log/models/managers.py @@ -8,7 +8,7 @@ from django.utils.translation import ugettext_lazy as _ from django.conf import settings from audit_log.models.fields import Last...
fixing import of local settings over-writing global settings. addresses <URL>
py
diff --git a/see.py b/see.py index <HASH>..<HASH> 100644 --- a/see.py +++ b/see.py @@ -20,6 +20,8 @@ __version__ = '0.5.2' __copyright__ = 'Copyright (c) 2009 Liam Cooke' __license__ = 'GNU General Public License v3' +__all__ = ['see'] + import fnmatch import inspect
Now you can be lazy and `from see import *` `from see import *` will *only* import see()
py
diff --git a/safe/definitions/exposure.py b/safe/definitions/exposure.py index <HASH>..<HASH> 100644 --- a/safe/definitions/exposure.py +++ b/safe/definitions/exposure.py @@ -51,7 +51,7 @@ exposure_population = { tr('Numbers reported for population counts have been rounded ' 'to the...
smalle formatting fix (#<I>) * moved realtime and geosafe canvases out to their own graffle docs and into their repos * made 1,<I> formatting consistent
py
diff --git a/samtranslator/__init__.py b/samtranslator/__init__.py index <HASH>..<HASH> 100644 --- a/samtranslator/__init__.py +++ b/samtranslator/__init__.py @@ -1 +1 @@ -__version__ = "1.43.0" +__version__ = "1.44.0"
chore: Version bump to <I> (#<I>)
py
diff --git a/cwltool/load_tool.py b/cwltool/load_tool.py index <HASH>..<HASH> 100644 --- a/cwltool/load_tool.py +++ b/cwltool/load_tool.py @@ -150,7 +150,6 @@ def validate_document(document_loader, # type: Loader jobobj = None if "cwl:tool" in workflowobj: jobobj, _ = document_loader.resolve_all(wor...
Remove spurious print statement. (#<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -158,6 +158,7 @@ setup( 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', ...
Add python <I> support
py
diff --git a/main.py b/main.py index <HASH>..<HASH> 100755 --- a/main.py +++ b/main.py @@ -345,6 +345,7 @@ class PowerLogParser: sre = SEND_CHOICES_CHOICETYPE_RE.match(data) if sre: id, type = sre.groups() + type = parse_enum(enums.ChoiceType, type) node = SendChoicesNode(ts, id, type) self.update_n...
Parse choice types into ChoiceType enum for SendChoices as well
py
diff --git a/xclim/core/indicator.py b/xclim/core/indicator.py index <HASH>..<HASH> 100644 --- a/xclim/core/indicator.py +++ b/xclim/core/indicator.py @@ -620,6 +620,7 @@ class MultiIndicator(Indicator): cell_methods = None def __call__(self, *args, **kwds): + """Call function of MultiIndicator class...
Minor fixes for doc and linting
py
diff --git a/squad/api/rest.py b/squad/api/rest.py index <HASH>..<HASH> 100644 --- a/squad/api/rest.py +++ b/squad/api/rest.py @@ -512,7 +512,8 @@ class PatchSourceSerializer(serializers.HyperlinkedModelSerializer): fields = '__all__' extra_kwargs = { 'token': {'write_only': True}, - ...
api: rest: give write only access to _password field
py
diff --git a/tornado/testing.py b/tornado/testing.py index <HASH>..<HASH> 100644 --- a/tornado/testing.py +++ b/tornado/testing.py @@ -165,6 +165,11 @@ class AsyncTestCase(unittest.TestCase): # set FD_CLOEXEC on its file descriptors) self.io_loop.close(all_fds=True) super(AsyncTestCas...
Move fallback exception raising in AsyncTestCase from run() to tearDown(). This allows the exception to be reported as a test failure instead of making the test run blow up.
py
diff --git a/molecule/shell.py b/molecule/shell.py index <HASH>..<HASH> 100644 --- a/molecule/shell.py +++ b/molecule/shell.py @@ -42,7 +42,7 @@ def _get_ansible_version(): # pragma: no cover return ansible.__version__ -def _supported_python2_version(): # pragma: no coversys.version_info[:2] +def _supported_...
fix pragma: no cover comment typo (#<I>)
py
diff --git a/tests/test_automate.py b/tests/test_automate.py index <HASH>..<HASH> 100644 --- a/tests/test_automate.py +++ b/tests/test_automate.py @@ -154,6 +154,7 @@ from automate.common import Lock def test_lock(sysloader): + # TODO: check why this is not robust (see https://travis-ci.org/tuomas2/automate/job...
Mark TODO about non-robust test
py
diff --git a/clam/config/oauthtest.py b/clam/config/oauthtest.py index <HASH>..<HASH> 100644 --- a/clam/config/oauthtest.py +++ b/clam/config/oauthtest.py @@ -59,7 +59,7 @@ URLPREFIX = "clamtest" #To run this yourself, you'll need to register and get a #client_id/client_secret for your own authentication provider OA...
proper client ID for OAuth test with github
py
diff --git a/nodeconductor/server/admin/dashboard.py b/nodeconductor/server/admin/dashboard.py index <HASH>..<HASH> 100644 --- a/nodeconductor/server/admin/dashboard.py +++ b/nodeconductor/server/admin/dashboard.py @@ -1,12 +1,12 @@ -from django.core.urlresolvers import reverse from django.conf import settings +from d...
Sort imports alphabetically [WAL-<I>]
py
diff --git a/python/pyspark/mllib/tests.py b/python/pyspark/mllib/tests.py index <HASH>..<HASH> 100644 --- a/python/pyspark/mllib/tests.py +++ b/python/pyspark/mllib/tests.py @@ -1189,6 +1189,7 @@ class StreamingKMeansTest(MLLibStreamingTestCase): self._eventually(condition, catch_assertions=True) + @un...
[SPARK-<I>][MLLIB][STREAMING][PYSPARK] ignore StreamingKMeans test in PySpark for now I saw several failures from recent PR builds, e.g., <URL>
py
diff --git a/hdbscan/prediction.py b/hdbscan/prediction.py index <HASH>..<HASH> 100644 --- a/hdbscan/prediction.py +++ b/hdbscan/prediction.py @@ -184,7 +184,10 @@ def _find_neighbor_and_lambda(neighbor_indices, neighbor_distances, nn_index = mr_distances.argmin() nearest_neighbor = neighbor_indices[nn_inde...
Fix for #<I> If more than min_samples points directly overlap we get trouble; allow for that case.
py
diff --git a/ryu/lib/packet/packet_base.py b/ryu/lib/packet/packet_base.py index <HASH>..<HASH> 100644 --- a/ryu/lib/packet/packet_base.py +++ b/ryu/lib/packet/packet_base.py @@ -28,6 +28,7 @@ class PacketBase(object): def __init__(self): super(PacketBase, self).__init__() self.length = 0 + ...
packet lib: set protocol_name in each protocol With this, it's easy to know the protocol name.
py
diff --git a/porespy/filters/__funcs__.py b/porespy/filters/__funcs__.py index <HASH>..<HASH> 100644 --- a/porespy/filters/__funcs__.py +++ b/porespy/filters/__funcs__.py @@ -854,6 +854,8 @@ def flood(im, regions=None, mode='max'): labels = sp.copy(regions) N = labels.max() mode = 'sum' if mode =...
Accepting max and maximum, min and minimum for backward compatibility
py
diff --git a/monstro/conf/__init__.py b/monstro/conf/__init__.py index <HASH>..<HASH> 100644 --- a/monstro/conf/__init__.py +++ b/monstro/conf/__init__.py @@ -44,7 +44,12 @@ async def import_settings_class(): ) settings_class = import_object(path) - await SettingsForm(data=dict(settings_class.__dict_...
Fixed prepare settings for inherited classes.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -28,8 +28,8 @@ required = [ 'virtualenv-clone>=0.2.5', 'virtualenv', 'pathlib2==2.1.0;python_version<"3.4"', - 'requests[security];python_version<"3.0"', - 'ordereddict;python_version<"3.0"', + 'request...
Only depend on requests[security] and ordereddict for Python <I> Fixes #<I>
py
diff --git a/jax/random.py b/jax/random.py index <HASH>..<HASH> 100644 --- a/jax/random.py +++ b/jax/random.py @@ -16,10 +16,10 @@ Example usage: - rng = jax.random.PRNGKey(seed) - for i in range(num_steps): - rng, rng_input = jax.random.split(rng) - params = compiled_update(rng_input, params, next(batches...
codeblock for example usage in PRNG docstring
py
diff --git a/src/Rammbock/binary_tools.py b/src/Rammbock/binary_tools.py index <HASH>..<HASH> 100644 --- a/src/Rammbock/binary_tools.py +++ b/src/Rammbock/binary_tools.py @@ -83,10 +83,6 @@ def to_0xhex(binary): return '0x' + to_hex(binary) -def log_hex(message, level='INFO'): - print '*%s* %s' % (level, to...
remove unused log_hex from binary tools
py
diff --git a/sparc/db/interfaces.py b/sparc/db/interfaces.py index <HASH>..<HASH> 100644 --- a/sparc/db/interfaces.py +++ b/sparc/db/interfaces.py @@ -22,9 +22,9 @@ class IQueryResultSet(IQuery): class IResult(Interface): """A single database query result (i.e. a row)""" -class ITableResult(IResult): +class ITa...
update interface names to match Tabular instead of Table
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ setup( ], keywords=['django timezone'], packages=find_packages(exclude=['tests', 'tests.*']), - install_requires=['django>=1.7', 'pytz'], + install_requires=['Django>=1.7', 'pytz'], ext...
Used the correct case of Django in setuptools requirements.
py
diff --git a/replaylib/stubs.py b/replaylib/stubs.py index <HASH>..<HASH> 100644 --- a/replaylib/stubs.py +++ b/replaylib/stubs.py @@ -153,19 +153,16 @@ class PlayingHTTPResponse(object): self.status = r.status self.reason = r.reason self.msg = r.headers - + assert self.msg is not None...
assume headers are provided when PlayingHTTPResponse is instantiated
py
diff --git a/ipyvolume/headless.py b/ipyvolume/headless.py index <HASH>..<HASH> 100644 --- a/ipyvolume/headless.py +++ b/ipyvolume/headless.py @@ -2,9 +2,8 @@ Assuming osx, define the following aliases for convenience, and start in headless mode:: - $ alias chrome-canary="/Applications/Google\ Chrome\ Canary.a...
doc: don't mention canary (as discussed in #<I>)
py
diff --git a/misc/log-analytics/import_logs.py b/misc/log-analytics/import_logs.py index <HASH>..<HASH> 100755 --- a/misc/log-analytics/import_logs.py +++ b/misc/log-analytics/import_logs.py @@ -8,7 +8,10 @@ # @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later # @version $Id$ # -# For more info see: h...
Refs #<I> Document python requirement in the file comment header
py
diff --git a/gnupg/_meta.py b/gnupg/_meta.py index <HASH>..<HASH> 100644 --- a/gnupg/_meta.py +++ b/gnupg/_meta.py @@ -448,6 +448,8 @@ class GPGBase(object): self._read_data(proc.stdout, result) if proc.returncode: raise RuntimeError("Error invoking gpg: %s" % result.data) + else: ...
Close process FDs after __init__() sanity check. * FIXES and issue discovered by ttanner (<URL>) in `gnupg._meta.GPGBase._check_sane_and_get_gpg_version()` where the GnuPG process wasn't closed and its file descriptors were left hanging. * FIXES part of Issue #<I>. <URL>
py
diff --git a/tests/test_menu.py b/tests/test_menu.py index <HASH>..<HASH> 100644 --- a/tests/test_menu.py +++ b/tests/test_menu.py @@ -26,10 +26,9 @@ def run_menu(test_input): def test_tools_status(): """ Test the staticmethod tools_status """ - a = MainForm() - b, c = MainForm.tools_status(True) - ass...
don't instanciate the whole class
py
diff --git a/wasp_general/task/scheduler/proto.py b/wasp_general/task/scheduler/proto.py index <HASH>..<HASH> 100644 --- a/wasp_general/task/scheduler/proto.py +++ b/wasp_general/task/scheduler/proto.py @@ -75,6 +75,10 @@ class WTaskSchedule: at the specified moment. This policy is a recommendation for a scheduler an...
wasp_general/task/scheduler/proto.py: note for WTaskSchedule class was added
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -96,11 +96,14 @@ setup( 'Programming Language :: Python :: Implementation :: PyPy', 'Programming Language :: Python :: Implementation :: CPython', ], - tests_require=['flake8'], + tests_require=[ +...
Consistent code look and feel.
py
diff --git a/superset/viz.py b/superset/viz.py index <HASH>..<HASH> 100644 --- a/superset/viz.py +++ b/superset/viz.py @@ -1184,10 +1184,6 @@ class NVD3TimeSeriesViz(NVD3Viz): dfs.sort_values(ascending=False, inplace=True) df = df[dfs.index] - if fd.get('contribution'): - d...
fix inaccurate data calculation with adata rolling and contribution (#<I>)
py
diff --git a/oauth2client/client.py b/oauth2client/client.py index <HASH>..<HASH> 100644 --- a/oauth2client/client.py +++ b/oauth2client/client.py @@ -895,7 +895,7 @@ class AccessTokenCredentials(OAuth2Credentials): http = httplib2.Http() http = credentials.authorize(http) - Exceptions: + Raises: Acc...
Renaming "Exceptions" docstring sections as "Raises". Fixes #<I>.
py
diff --git a/coupons/forms.py b/coupons/forms.py index <HASH>..<HASH> 100644 --- a/coupons/forms.py +++ b/coupons/forms.py @@ -41,6 +41,11 @@ class CouponForm(forms.Form): raise forms.ValidationError(_("This code is not valid.")) self.coupon = coupon + if self.user is None and coupon.user...
deny redeem of coupon if the user is missing in the form and it is a multi user coupon
py
diff --git a/pymzn/mzn/minizinc.py b/pymzn/mzn/minizinc.py index <HASH>..<HASH> 100644 --- a/pymzn/mzn/minizinc.py +++ b/pymzn/mzn/minizinc.py @@ -38,6 +38,11 @@ from ..process import run, run_process from ..dzn import dict2dzn from ..exceptions import * +__all__ = [ + 'minizinc_version', 'preprocess_model', 'sa...
minizinc: add __all__ list with public functions
py
diff --git a/shutit_setup.py b/shutit_setup.py index <HASH>..<HASH> 100644 --- a/shutit_setup.py +++ b/shutit_setup.py @@ -1,15 +1,13 @@ """ -Nomenclature: +shutit.tk.setup (core ShutIt setup module) -Host machine - Machine on which this pexpect script is run. -Target - Environment on which we deploy (docker conta...
The first line should briefily describe the module.
py
diff --git a/unittests/patcher_tester.py b/unittests/patcher_tester.py index <HASH>..<HASH> 100644 --- a/unittests/patcher_tester.py +++ b/unittests/patcher_tester.py @@ -193,11 +193,8 @@ class tester_impl_t(parser_test_case.parser_test_case_t): self.assertEqual(default_val, val) if 32 == self.archite...
Cleanup patcher tester That part of the if/else branch was testing nothing
py
diff --git a/parsl/executors/workqueue/executor.py b/parsl/executors/workqueue/executor.py index <HASH>..<HASH> 100644 --- a/parsl/executors/workqueue/executor.py +++ b/parsl/executors/workqueue/executor.py @@ -712,7 +712,7 @@ def _work_queue_submit_wait(task_queue=multiprocessing.Queue(), if wq_log_dir is not Non...
Don't enable WQ resource monitor if autolabel=False (#<I>) Fixes #<I>. Before, the WQ resource monitor would be enabled if debugging was enabled. We only want it enabled if autolabel=True.
py
diff --git a/zinnia/__init__.py b/zinnia/__init__.py index <HASH>..<HASH> 100644 --- a/zinnia/__init__.py +++ b/zinnia/__init__.py @@ -1,5 +1,5 @@ """Zinnia""" -__version__ = '0.10.1' +__version__ = '0.11.dev' __license__ = 'BSD License' __author__ = 'Fantomas42'
repassing to <I>.dev
py
diff --git a/ubersmith/device.py b/ubersmith/device.py index <HASH>..<HASH> 100644 --- a/ubersmith/device.py +++ b/ubersmith/device.py @@ -20,7 +20,7 @@ def get(device_id, request_handler=None, **kwargs): def list(request_handler=None, **kwargs): """List devices in the system.""" - return ListCall(request_ha...
wrong order of args in device.get call
py
diff --git a/endpoints/__init__.py b/endpoints/__init__.py index <HASH>..<HASH> 100644 --- a/endpoints/__init__.py +++ b/endpoints/__init__.py @@ -34,4 +34,4 @@ from users_id_token import get_current_user from users_id_token import InvalidGetUserCall from users_id_token import SKIP_CLIENT_ID_CHECK -__version__ = '2...
Bump subminor version (<I> -> <I>)
py
diff --git a/nautilus/services/apiGateway.py b/nautilus/services/apiGateway.py index <HASH>..<HASH> 100644 --- a/nautilus/services/apiGateway.py +++ b/nautilus/services/apiGateway.py @@ -15,6 +15,10 @@ class APIGateway(Service): schema (graphql.core.type.GraphQLSchema): The schema to use that ...
added missing documentation for api gateway action handler
py
diff --git a/tests/test_web.py b/tests/test_web.py index <HASH>..<HASH> 100644 --- a/tests/test_web.py +++ b/tests/test_web.py @@ -719,7 +719,6 @@ class TestWeb(object): '''Jobs should error if not completed within the misfire_grace_time.''' client = test_client() event = mock_result_url(RESU...
Delete a comment This has been accidentally left in by some refactoring or merge.
py
diff --git a/web/opensubmit/signalhandlers.py b/web/opensubmit/signalhandlers.py index <HASH>..<HASH> 100644 --- a/web/opensubmit/signalhandlers.py +++ b/web/opensubmit/signalhandlers.py @@ -28,7 +28,8 @@ def check_permission_system(): "add_gradingscheme", "change_gradingscheme", "delete_gradingsch...
Course owners now manage test machines and can create new courses. The reduces the admin to user management only.
py
diff --git a/peyotl/utility.py b/peyotl/utility.py index <HASH>..<HASH> 100644 --- a/peyotl/utility.py +++ b/peyotl/utility.py @@ -132,8 +132,8 @@ def get_config(section=None, param=None, default=None): global _CONFIG, _CONFIG_FN if _CONFIG is None: from ConfigParser import SafeConfigParser - ...
typo in new env var fixed
py
diff --git a/blimpy/filterbank.py b/blimpy/filterbank.py index <HASH>..<HASH> 100755 --- a/blimpy/filterbank.py +++ b/blimpy/filterbank.py @@ -156,11 +156,13 @@ class Filterbank(object): self.header[key] = val self.data = self.h5[b"data"][:] + self.n_ints_in_file = self.data.shape[0]...
Bugfix for timestamp gen
py
diff --git a/src/python/pants/backend/core/tasks/what_changed.py b/src/python/pants/backend/core/tasks/what_changed.py index <HASH>..<HASH> 100644 --- a/src/python/pants/backend/core/tasks/what_changed.py +++ b/src/python/pants/backend/core/tasks/what_changed.py @@ -5,9 +5,6 @@ from __future__ import (nested_scopes, g...
Remove unused imports from what-changed. Testing Done: /pants test tests/python/pants_test/tasks:what_changed <URL>
py
diff --git a/fc/transform.py b/fc/transform.py index <HASH>..<HASH> 100644 --- a/fc/transform.py +++ b/fc/transform.py @@ -11,7 +11,7 @@ # parameters. # # Author: John T. Sexton (john.t.sexton@rice.edu) -# Date: 2/11/2015 +# Date: 6/29/2015 # # Requires: # * numpy @@ -33,8 +33,21 @@ def exponentiate(data): d...
High level organization to find_hist_peaks().
py
diff --git a/sos/report/plugins/openvswitch.py b/sos/report/plugins/openvswitch.py index <HASH>..<HASH> 100644 --- a/sos/report/plugins/openvswitch.py +++ b/sos/report/plugins/openvswitch.py @@ -129,7 +129,9 @@ class OpenVSwitch(Plugin): "OpenFlow10", "OpenFlow11", ...
[openvswitch] add support for OpenFlow <I> and <I> The bridge protocol support has been extended for some time, so ensure that we actually pull this protocol information if it is configured that way.
py
diff --git a/bigquery/client.py b/bigquery/client.py index <HASH>..<HASH> 100644 --- a/bigquery/client.py +++ b/bigquery/client.py @@ -227,7 +227,7 @@ class BigQueryClient(object): """ Submit a query job to BigQuery. This is similar to BigQueryClient.query, but gives the user - direct...
docs: fix simple typo, offical -> official There is a small typo in bigquery/client.py. Should read `official` rather than `offical`.
py
diff --git a/redis_sessions/session.py b/redis_sessions/session.py index <HASH>..<HASH> 100644 --- a/redis_sessions/session.py +++ b/redis_sessions/session.py @@ -17,7 +17,7 @@ if settings.SESSION_REDIS_SENTINEL_LIST is not None: settings.SESSION_REDIS_SENTINEL_LIST, socket_timeout=0.1, db=ge...
Use None as default for SESSION_REDIS_PASSWORD
py
diff --git a/pyquil/__init__.py b/pyquil/__init__.py index <HASH>..<HASH> 100644 --- a/pyquil/__init__.py +++ b/pyquil/__init__.py @@ -1 +1 @@ -__version__ = "1.1.2" +__version__ = "1.1.3"
Update version from <I> to <I>
py
diff --git a/luigi/scheduler.py b/luigi/scheduler.py index <HASH>..<HASH> 100644 --- a/luigi/scheduler.py +++ b/luigi/scheduler.py @@ -534,6 +534,11 @@ class CentralPlannerScheduler(Scheduler): def prune(self): logger.info("Starting pruning of task graph") + self._prune_workers() + self._p...
scheduler.py: Refactor Scheduler.prune() Split it into two methods. Making their symmetric structure a bit more obvious and decreasing the average complexity per method.
py
diff --git a/pep8ify/pep8ify.py b/pep8ify/pep8ify.py index <HASH>..<HASH> 100755 --- a/pep8ify/pep8ify.py +++ b/pep8ify/pep8ify.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from lib2to3.main import main +import lib2to3.main try: import pep8ify.fixes @@ -14,7 +14,7 @@ except ImportError: def _main(): - r...
Clean-up: Use lib2to3.main.main qualified. Calling just `main(...)` is a bit irritating.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -60,8 +60,6 @@ setup( namespace_packages=[], zip_safe=False, install_requires=[ - # -*- Extra requirements: -*- - 'gitchangelog', ], entry_points="", )
fix: removed ``gitchangelog`` from ``setup.py`` require list. (fixes #9)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ _short_description = ("pylint-common is a Pylint plugin to improve Pylint " "error analysis of the standard Python library") _classifiers = ( - 'Development Status :: 5 - Prouction/S...
Trove classifier "Production/Stable" does not work apparently
py
diff --git a/awslimitchecker/tests/test_versioncheck.py b/awslimitchecker/tests/test_versioncheck.py index <HASH>..<HASH> 100644 --- a/awslimitchecker/tests/test_versioncheck.py +++ b/awslimitchecker/tests/test_versioncheck.py @@ -316,7 +316,7 @@ class Test_AGPLVersionChecker_Acceptance(object): print("rem...
switch to sys.executable to try to find current interpreter
py
diff --git a/bingsearch.py b/bingsearch.py index <HASH>..<HASH> 100644 --- a/bingsearch.py +++ b/bingsearch.py @@ -29,7 +29,7 @@ class BingSearch(object): ''' Returns a list of result objects, with the url for the next page bing search url. ''' - url = self.QUERY_URL.format(urllib2.quo...
adding back the accidentally removed params
py
diff --git a/tests/test_themed_tk.py b/tests/test_themed_tk.py index <HASH>..<HASH> 100644 --- a/tests/test_themed_tk.py +++ b/tests/test_themed_tk.py @@ -24,14 +24,15 @@ class TestThemedTk(unittest.TestCase): raise AssertionError("Theme {} not available".format(theme)) def test_theme_setting(se...
Fix failing test on Windows due to ttk memory leak
py
diff --git a/ffmpeg_normalize/_media_file.py b/ffmpeg_normalize/_media_file.py index <HASH>..<HASH> 100644 --- a/ffmpeg_normalize/_media_file.py +++ b/ffmpeg_normalize/_media_file.py @@ -355,6 +355,7 @@ class MediaFile: " ".join([shlex.quote(c) for c in cmd]), e ) ...
re-raise error on ffmpeg command failure This prevents incorrectly telling the user that a normalized file was written when it wasn't.
py
diff --git a/src/analysis/model_mapper.py b/src/analysis/model_mapper.py index <HASH>..<HASH> 100644 --- a/src/analysis/model_mapper.py +++ b/src/analysis/model_mapper.py @@ -139,7 +139,7 @@ class ModelMapper(object): # noinspection PyTypeChecker return prior_models + [("{}_{}".format(list_prior_model...
directly enumerating ListPriorModel but now issue with flattening galaxyprior
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -21,6 +21,7 @@ setup(name='bcbio_monitor', entry_points={ 'console_scripts': [ 'bcbio_monitor = bcbio_monitor:main', + 'bcbio-monitor = bcbio_monitor:main', ], }, in...
add "bcbio-monitor" as alternative CLI entry point :)
py
diff --git a/cassandra/marshal.py b/cassandra/marshal.py index <HASH>..<HASH> 100644 --- a/cassandra/marshal.py +++ b/cassandra/marshal.py @@ -25,7 +25,7 @@ float_pack, float_unpack = _make_packer('>f') double_pack, double_unpack = _make_packer('>d') # Special case for cassandra header -header_struct = struct.Struc...
Stream ID in header is a signed byte
py
diff --git a/salt/minion.py b/salt/minion.py index <HASH>..<HASH> 100644 --- a/salt/minion.py +++ b/salt/minion.py @@ -935,7 +935,7 @@ class Minion(MinionBase): # Flag meaning minion has finished initialization including first connect to the master. # True means the Minion is fully functional and read...
Activate jid_queue also for SingleMinions to workaround 0mq reconnection issues
py
diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index <HASH>..<HASH> 100644 --- a/pylint/checkers/spelling.py +++ b/pylint/checkers/spelling.py @@ -129,6 +129,15 @@ class SpellingChecker(BaseTokenChecker): def _check_spelling(self, msgid, line, line_num): line2 = line.strip() + ...
Ignore shebang's, coding lines and pylint comments (#<I>)
py
diff --git a/flask_appconfig/cli.py b/flask_appconfig/cli.py index <HASH>..<HASH> 100644 --- a/flask_appconfig/cli.py +++ b/flask_appconfig/cli.py @@ -276,14 +276,13 @@ def serve(obj, hostname, port, processes, backends, list_only): # helpful message when trying to run on port 80 without room ...
Simplified exception handling in serve.
py
diff --git a/openquake/commonlib/readinput.py b/openquake/commonlib/readinput.py index <HASH>..<HASH> 100644 --- a/openquake/commonlib/readinput.py +++ b/openquake/commonlib/readinput.py @@ -403,12 +403,12 @@ def get_source_models(oqparam, gsim_lt, source_model_lt, in_memory=True): else: # just collect the TR...
Added comments [skip CI] Former-commit-id: 5ec<I>bb<I>d<I>a<I>eefe4b<I>cb3c<I>e
py