diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/galpy/orbit/Orbits.py b/galpy/orbit/Orbits.py index <HASH>..<HASH> 100644 --- a/galpy/orbit/Orbits.py +++ b/galpy/orbit/Orbits.py @@ -3,6 +3,7 @@ import numpy from .Orbit import Orbit from ..util import galpyWarning, galpyWarningVerbose from ..util.multi import parallel_map +from ..util.bovy_plot import...
Rudimentary function to plot Orbits
py
diff --git a/conftest.py b/conftest.py index <HASH>..<HASH> 100644 --- a/conftest.py +++ b/conftest.py @@ -156,6 +156,12 @@ def enable_db_access(db): MOCK_BASE_URL = 'http://mock/node' + +@pytest.fixture(scope='function', params=[True, False]) +def true_false(request): + yield request.param + + # CN and MN (for ...
Add fixture for setting True/False values
py
diff --git a/metaseq/test/test.py b/metaseq/test/test.py index <HASH>..<HASH> 100644 --- a/metaseq/test/test.py +++ b/metaseq/test/test.py @@ -485,7 +485,7 @@ def test_errors(): (ValueError, metaseq.filetype_adapters.BaseAdapter, (metaseq.example_filename('gdc.bed'),), {}), (NotImplementedError, metas...
comment out travis-specific failing test
py
diff --git a/example/app.py b/example/app.py index <HASH>..<HASH> 100644 --- a/example/app.py +++ b/example/app.py @@ -1,7 +1,7 @@ import flask from flask import Flask, jsonify -from flask_pyoidc import OIDCAuthentication +from flask_pyoidc.flask_pyoidc import OIDCAuthentication PORT = 5000 app = Flask(__name__...
Fix import broken after package restructure.
py
diff --git a/pytablereader/sqlite/formatter.py b/pytablereader/sqlite/formatter.py index <HASH>..<HASH> 100644 --- a/pytablereader/sqlite/formatter.py +++ b/pytablereader/sqlite/formatter.py @@ -32,12 +32,12 @@ class SqliteTableFormatter(TableFormatter): for table in con.fetch_table_names(): self....
Refactor: rename a local variable
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ from setuptools import setup, find_packages setup(name='umapi-client', - version='1.0.0rc5', + version='1.0.0', description='Adobe User Management API (UMAPI) client - see https://adobe.ly/...
Promote <I>rc5 to <I>.
py
diff --git a/montblanc/impl/rime/tensorflow/RimeSolver.py b/montblanc/impl/rime/tensorflow/RimeSolver.py index <HASH>..<HASH> 100644 --- a/montblanc/impl/rime/tensorflow/RimeSolver.py +++ b/montblanc/impl/rime/tensorflow/RimeSolver.py @@ -1276,6 +1276,10 @@ def _apply_source_provider_dim_updates(cube, source_providers,...
Handle previously zeroed dims during dim updates (#<I>) If a dimension was set to zero during a previous dimension update, then subsequent, larger, dimension updates would never be applied. Fix this by setting the dimension to global_size if it was previously zero.
py
diff --git a/angr/analyses/variable_recovery/variable_recovery.py b/angr/analyses/variable_recovery/variable_recovery.py index <HASH>..<HASH> 100644 --- a/angr/analyses/variable_recovery/variable_recovery.py +++ b/angr/analyses/variable_recovery/variable_recovery.py @@ -1,6 +1,8 @@ - import logging from collections i...
fix #<I>; generally lint variablerecovery
py
diff --git a/django_enumfield/__init__.py b/django_enumfield/__init__.py index <HASH>..<HASH> 100644 --- a/django_enumfield/__init__.py +++ b/django_enumfield/__init__.py @@ -17,7 +17,7 @@ def get_version(version=None): main = '.'.join(str(x) for x in version[:parts]) sub = '' - if version[3] != 'final':...
Skip coverage for if deciding release type Bad for final versions  😁
py
diff --git a/openquake/calculators/base.py b/openquake/calculators/base.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/base.py +++ b/openquake/calculators/base.py @@ -414,7 +414,7 @@ class HazardCalculator(BaseCalculator): oq = self.oqparam wakeup_pool() # fork before reading the data ...
Avoided reading the source model when not needed [skip hazardlib][demos] Former-commit-id: 2b<I>d<I>ddbfca<I>d7a3d1a<I>a<I>e<I>b
py
diff --git a/memprof/memprof.py b/memprof/memprof.py index <HASH>..<HASH> 100755 --- a/memprof/memprof.py +++ b/memprof/memprof.py @@ -104,7 +104,7 @@ class MemProf(object): self.__log.write("%f\n" % from_start) - for item, value in filter(lambda x: (x[1] != self.__class__) and isInteresting(x[1]),se...
Changed equality check to identity check for correct behaviour with custom objects.
py
diff --git a/andes/routines/pflow.py b/andes/routines/pflow.py index <HASH>..<HASH> 100644 --- a/andes/routines/pflow.py +++ b/andes/routines/pflow.py @@ -60,6 +60,10 @@ class PFlow(BaseRoutine): self.y_sol = None def init(self): + """ + Initialize variables for power flow. + """ + ...
Fix residual wrapper for Krylov method.
py
diff --git a/djes/management/commands/bulk_index.py b/djes/management/commands/bulk_index.py index <HASH>..<HASH> 100644 --- a/djes/management/commands/bulk_index.py +++ b/djes/management/commands/bulk_index.py @@ -16,7 +16,8 @@ def model_iterator(model, index=None, out=None): for obj in model.search_objects.itera...
Whoops, I should check if out is set
py
diff --git a/invenio_migrator/records.py b/invenio_migrator/records.py index <HASH>..<HASH> 100644 --- a/invenio_migrator/records.py +++ b/invenio_migrator/records.py @@ -101,7 +101,7 @@ class RecordDumpLoader(object): record.model.json = revision record.model.created = timestamp.replace(tzinf...
records: revision loading fix * Fixes bug that would cause the initial revision to be the most recent when files where also added to the record.
py
diff --git a/tests/test_commands.py b/tests/test_commands.py index <HASH>..<HASH> 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -126,6 +126,34 @@ class TestRedisCommands(object): def test_ping(self, r): assert r.ping() + def test_shutdown(self, r): + r.shutdown() + ...
Adding a couple of tests for the SHUTDOWN command and the added NOSAVE option.
py
diff --git a/config/rusettings.py b/config/rusettings.py index <HASH>..<HASH> 100644 --- a/config/rusettings.py +++ b/config/rusettings.py @@ -277,6 +277,7 @@ CONFIGURATIONS = { ], 'modes': [ ('editor','Annotation Editor')], 'perspectives': ['s'], + 'slices': 's:100', }, 'sinfex': { 'name': 'Si...
added slice configuration for sinfex and parseme
py
diff --git a/salt/cloud/clouds/vmware.py b/salt/cloud/clouds/vmware.py index <HASH>..<HASH> 100644 --- a/salt/cloud/clouds/vmware.py +++ b/salt/cloud/clouds/vmware.py @@ -605,7 +605,7 @@ def _wait_for_task(task, vm_name, task_type, sleep_seconds=1, log_level='debug') else: log.debug(message) ...
Make sure exception raises is of type Exception() Fixes #<I>
py
diff --git a/texcla/embeddings.py b/texcla/embeddings.py index <HASH>..<HASH> 100644 --- a/texcla/embeddings.py +++ b/texcla/embeddings.py @@ -100,13 +100,13 @@ _EMBEDDING_TYPES = { } -def _build_line(embedding_dims, f): +def _build_line(embedding_dims, f, is_gzip=False): index = {} for line in f: ...
only decode when really gzipped
py
diff --git a/git/util.py b/git/util.py index <HASH>..<HASH> 100644 --- a/git/util.py +++ b/git/util.py @@ -704,7 +704,11 @@ class Actor(object): setattr(actor, attr, val) except KeyError: if config_reader is not None: - setattr(actor, attr, config_reader...
Do not call get_user_id if it is not needed On systems without any environment variables and no pwd module, gitpython crashes as it tries to read the environment variable before looking at its config.
py
diff --git a/raiden_mps/raiden_mps/client/channel.py b/raiden_mps/raiden_mps/client/channel.py index <HASH>..<HASH> 100644 --- a/raiden_mps/raiden_mps/client/channel.py +++ b/raiden_mps/raiden_mps/client/channel.py @@ -116,9 +116,9 @@ class Channel: if balance: self.balance = 0 - self...
client fix for channel closure at 0 balance
py
diff --git a/simpleai/search/web_viewer_server.py b/simpleai/search/web_viewer_server.py index <HASH>..<HASH> 100644 --- a/simpleai/search/web_viewer_server.py +++ b/simpleai/search/web_viewer_server.py @@ -28,26 +28,26 @@ def run_server(viewer): return send_file(viewer.graph_path) - @app.route('/play')...
Reorganization of urls and view names
py
diff --git a/OpenPNM/Base/__Tools__.py b/OpenPNM/Base/__Tools__.py index <HASH>..<HASH> 100644 --- a/OpenPNM/Base/__Tools__.py +++ b/OpenPNM/Base/__Tools__.py @@ -19,9 +19,11 @@ class PrintableList(list): class PrintableDict(_odict): - def __init__(self, header='value', **kwargs): - super().__init__(**kw...
Fixed a glitch in the 'header' option added to dict in last commit
py
diff --git a/add_images_ads.py b/add_images_ads.py index <HASH>..<HASH> 100644 --- a/add_images_ads.py +++ b/add_images_ads.py @@ -1,5 +1,5 @@ from optparse import OptionParser -import json +import time from elasticsearch import Elasticsearch from elasticsearch import helpers import codecs @@ -133,12 +133,14 @@ if ...
log time taken for <I> attempts
py
diff --git a/tests/unit/test_commands.py b/tests/unit/test_commands.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_commands.py +++ b/tests/unit/test_commands.py @@ -360,12 +360,12 @@ class TestCommands(object): """ Get the current stock price of the NASDAQ. - ^IXIC at 10:37am (ET): 2490.40 (0.4%) + ^IXI...
Fix nasdaq test, which was overmatching
py
diff --git a/fitsio/fitslib.py b/fitsio/fitslib.py index <HASH>..<HASH> 100644 --- a/fitsio/fitslib.py +++ b/fitsio/fitslib.py @@ -1372,6 +1372,7 @@ class FITSHDU: if not isobj[i]: nonobj_colnums.append(colnums_all[i]) if isrec: + # this ...
added check for None tdim, caused by malformed tdim in header
py
diff --git a/hpcbench/toolbox/functools_ext.py b/hpcbench/toolbox/functools_ext.py index <HASH>..<HASH> 100644 --- a/hpcbench/toolbox/functools_ext.py +++ b/hpcbench/toolbox/functools_ext.py @@ -56,11 +56,11 @@ def listify(func=None, wrapper=list): >>> get_lengths_tuple(["foo", "bar"]) (3, 3) """...
Fix pylint issue
py
diff --git a/discord/utils.py b/discord/utils.py index <HASH>..<HASH> 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -427,7 +427,7 @@ def resolve_invite(invite): The invite code. """ from .invite import Invite # circular import - if isinstance(invite, Invite) or isinstance(invite, Object...
isinstance(x, y) and isinstance(x, z) -> isinstance(x, (y, z))
py
diff --git a/tornadoes/__init__.py b/tornadoes/__init__.py index <HASH>..<HASH> 100644 --- a/tornadoes/__init__.py +++ b/tornadoes/__init__.py @@ -38,7 +38,7 @@ class ESConnection(object): "type": type_ } if parameters: - path += '?'+urlencode(parameters) + path += '...
Allow to pass parameters to multi search.
py
diff --git a/examples/mnist_mlp_spark.py b/examples/mnist_mlp_spark.py index <HASH>..<HASH> 100644 --- a/examples/mnist_mlp_spark.py +++ b/examples/mnist_mlp_spark.py @@ -18,6 +18,10 @@ batch_size = 64 nb_classes = 10 nb_epoch = 3 +# Create Spark context +conf = SparkConf().setAppName('Mnist_Spark_MLP') # .setMast...
Initialize SparkContext first to avoid timeout problem on YARN.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ with open("HISTORY.rst") as history_file: history = history_file.read() requirements = [ - "graphql-core>=2.0<3", + "graphql-core==2.*", # TODO: put package requirements here ]
Change the graphql-core requirement to avoid <I>a0 install in pip
py
diff --git a/src/pycrunchbase/resource/relationship.py b/src/pycrunchbase/resource/relationship.py index <HASH>..<HASH> 100644 --- a/src/pycrunchbase/resource/relationship.py +++ b/src/pycrunchbase/resource/relationship.py @@ -46,8 +46,15 @@ class Relationship(object): self.items = [PageItem.build(item) for it...
Handle nested relationships when building PageItem
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ from setuptools import setup import sys -__version__ = '1.0.1.dev1' +__version__ = '1.0.1.dev2' github_tag = __version__ if 'dev' in __version__: @@ -14,7 +14,7 @@ print(download_url) requirements = ['r...
adding python<I> and chaging version info and check
py
diff --git a/pysat/_instrument.py b/pysat/_instrument.py index <HASH>..<HASH> 100644 --- a/pysat/_instrument.py +++ b/pysat/_instrument.py @@ -358,10 +358,6 @@ class Instrument(object): raise ValueError('unknown keyword{:s} supplied: {:}'.format( '' if len(missing_keys) == 1 else 's', miss...
BUG: Moved instrument _init call to end of instantiation
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -57,7 +57,7 @@ setup( 'bottle==0.12.9', 'jsonschema==2.5.1', 'pyyaml==3.11', - 'requests==2.9.1', + 'requests>=2.17.0', 'gevent==1.1.2', 'gevent-websocket==0.9.5', ...
Updated python requests version number requirement influxDB requires requests>=<I> while AIT-CORE required <I>. Upgraded to the required version number. Change was tested out by sending sequences via AIT GUI while having telemetry archiving enabled.
py
diff --git a/billy/commands/download_photos.py b/billy/commands/download_photos.py index <HASH>..<HASH> 100644 --- a/billy/commands/download_photos.py +++ b/billy/commands/download_photos.py @@ -56,7 +56,9 @@ class DownloadPhotos(BaseCommand): # error retrieving photo, skip it try: ...
download_photos improvements for scrapelib exception
py
diff --git a/instaloader/structures.py b/instaloader/structures.py index <HASH>..<HASH> 100644 --- a/instaloader/structures.py +++ b/instaloader/structures.py @@ -365,6 +365,8 @@ class Profile: def from_username(cls, context: InstaloaderContext, username: str): """Create a Profile instance from a given us...
Fix anonymous retry on profile that blocked viewer
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( packages=['sharpy'], license="BSD", long_description=open('README.rst').read(), - install_requires=['httplib2', 'elementtree', 'python-dateutil'], + install_requires=['httplib2', 'ele...
Current implementation is compatible only with python-dateutil < <I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,13 @@ #!/usr/bin/python -from setuptools import setup, find_packages +import setuptools -setup( +params = dict( name='vr.runners', namespace_packages=['vr'], version='2.8.1', author='Brent Tubbs...
Only invoke setup when setup script is executed
py
diff --git a/pymatbridge/pymatbridge.py b/pymatbridge/pymatbridge.py index <HASH>..<HASH> 100644 --- a/pymatbridge/pymatbridge.py +++ b/pymatbridge/pymatbridge.py @@ -160,7 +160,7 @@ class _Session(object): self.startup_options = startup_options if socket_addr is None: - self.socket_addr ...
RF: For windows, bind to a random port and use that as your socket address.
py
diff --git a/py8583/py8583.py b/py8583/py8583.py index <HASH>..<HASH> 100644 --- a/py8583/py8583.py +++ b/py8583/py8583.py @@ -247,7 +247,7 @@ class Iso8583: p = self.ParseBitmap(p) - for field in self.__Bitmap: + for field in sorted(self.__Bitmap): # field 1 is parsed by the bit...
field parsing should be sorted
py
diff --git a/master/contrib/buildbot_cvs_mail.py b/master/contrib/buildbot_cvs_mail.py index <HASH>..<HASH> 100755 --- a/master/contrib/buildbot_cvs_mail.py +++ b/master/contrib/buildbot_cvs_mail.py @@ -183,7 +183,7 @@ parser.add_option("-R", "--reply-to", dest='replyto', metavar="ADDR", Add a "Reply-To: A...
option.smtplib was not getting when running live
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ import sys def main(): # Only install functools32 if we're in Python 2 (it's not available # for Python 3) - install_list = ['pysb>=1.2.1', 'objectpath', 'rdflib==4.2.1', + install_list = ['pysb>=...
Update pysb requirement to <I> or above
py
diff --git a/salt/states/file.py b/salt/states/file.py index <HASH>..<HASH> 100644 --- a/salt/states/file.py +++ b/salt/states/file.py @@ -2245,7 +2245,7 @@ def replace(name, - pattern: | CentOS \(2.6.32[^\n]+\n\s+root[^\n]+\n\)+ ''' - ret = {'name': name, 'changes': {}, 'result': ...
Fix states.file.replace() always reporting changes on test=True.
py
diff --git a/netmiko/ssh_dispatcher.py b/netmiko/ssh_dispatcher.py index <HASH>..<HASH> 100644 --- a/netmiko/ssh_dispatcher.py +++ b/netmiko/ssh_dispatcher.py @@ -155,8 +155,8 @@ platforms_str = "\n" + platforms_str scp_platforms = list(FILE_TRANSFER_MAP.keys()) scp_platforms.sort() -scp_platforms_str = "\n".join(p...
Fix Secure Copy error string to match supported platforms
py
diff --git a/tests/test_allocation.py b/tests/test_allocation.py index <HASH>..<HASH> 100644 --- a/tests/test_allocation.py +++ b/tests/test_allocation.py @@ -3,6 +3,7 @@ import json import uuid import responses import tests.common as common +import os # integration tests requires nomad Vagrant VM or Binary run...
Stop allocation support is present on Nomad >= <I>
py
diff --git a/pandas/tests/indexes/multi/test_constructor.py b/pandas/tests/indexes/multi/test_constructor.py index <HASH>..<HASH> 100644 --- a/pandas/tests/indexes/multi/test_constructor.py +++ b/pandas/tests/indexes/multi/test_constructor.py @@ -722,3 +722,10 @@ def test_from_frame_invalid_names(names, expected_error_...
Adding test for assert_equal_index with empty iterables (#<I>) * Adding test for assert_equal_index with empty iterables * Adding issue # in comment * formatted file using black * Move test to indexes/multi/test_constructor.py
py
diff --git a/pyphi/models/concept.py b/pyphi/models/concept.py index <HASH>..<HASH> 100644 --- a/pyphi/models/concept.py +++ b/pyphi/models/concept.py @@ -278,12 +278,11 @@ _concept_attributes = ['phi', 'mechanism', 'cause', 'effect', 'subsystem'] # TODO: make mechanism a property # TODO: make phi a property class C...
Fix typo in `Concept` docstring
py
diff --git a/models/LinkModel.py b/models/LinkModel.py index <HASH>..<HASH> 100644 --- a/models/LinkModel.py +++ b/models/LinkModel.py @@ -1,3 +1,4 @@ -class LinkModel(object): - def __init__(self): - self.target_interface = '' +### NOT USED: +# class LinkModel(object): +# def __init__(self): +# s...
commented out LinkModel class because it is not used
py
diff --git a/parsedatetime/__init__.py b/parsedatetime/__init__.py index <HASH>..<HASH> 100644 --- a/parsedatetime/__init__.py +++ b/parsedatetime/__init__.py @@ -2340,7 +2340,7 @@ class Constants(object): ) \b'''.format(**self.locale.re_values) - s...
Fix "1 day ago" parsing like "1d 1y ago" where "a" within the word "day" is interpreted as 1. Word boundaries were applied to RE_NUMBER `\b{numbers}\b`, but since `{numbers}` evaluates to an alternated set of values, it needs to be grouped otherwise the \b's apply only to the first and last words.
py
diff --git a/pygccxml/parser/scanner.py b/pygccxml/parser/scanner.py index <HASH>..<HASH> 100644 --- a/pygccxml/parser/scanner.py +++ b/pygccxml/parser/scanner.py @@ -322,7 +322,7 @@ class scanner_t( xml.sax.handler.ContentHandler ): if isinstance( calldef, declaration_t ): calldef.name = attrs.g...
adding warning and xml cache
py
diff --git a/txaws/ec2/tests/test_client.py b/txaws/ec2/tests/test_client.py index <HASH>..<HASH> 100644 --- a/txaws/ec2/tests/test_client.py +++ b/txaws/ec2/tests/test_client.py @@ -483,6 +483,19 @@ def make_query_factory(result, action, key_id, secret_key, params): return FakeQuery +class FakeQueryTests(Test...
Add a test for the mismatched case.
py
diff --git a/cnxpublishing/db.py b/cnxpublishing/db.py index <HASH>..<HASH> 100644 --- a/cnxpublishing/db.py +++ b/cnxpublishing/db.py @@ -145,11 +145,13 @@ def add_pending_model(cursor, publication_id, model): id, version = split_ident_hash(ident_hash, split_version=True) if version is None or versio...
fix accidental dependence on undefined results order
py
diff --git a/scripts/benchmark_iter.py b/scripts/benchmark_iter.py index <HASH>..<HASH> 100755 --- a/scripts/benchmark_iter.py +++ b/scripts/benchmark_iter.py @@ -44,12 +44,9 @@ def log_iterable(iterable, assume_multiprocess_types): batch_count = 0 cumulative_batch_size = 0 - cumulative_token_count = 0 ...
Remove non-general hack to count tokens. (#<I>)
py
diff --git a/exchangelib/util.py b/exchangelib/util.py index <HASH>..<HASH> 100644 --- a/exchangelib/util.py +++ b/exchangelib/util.py @@ -9,12 +9,11 @@ import re import socket import time -from defusedxml.lxml import parse, fromstring, tostring, GlobalParserTLS, RestrictedElement +from defusedxml.lxml import parse...
Workaround for bandit not allowing *any* lxml imports
py
diff --git a/plenum/server/propagator.py b/plenum/server/propagator.py index <HASH>..<HASH> 100644 --- a/plenum/server/propagator.py +++ b/plenum/server/propagator.py @@ -26,7 +26,10 @@ class ReqState: @property def most_propagated_request_with_senders(self): groups = defaultdict(set) - for ke...
Fix propagator * workaround for byte sender names * fix removing name of node from senders
py
diff --git a/tornado/test/simple_httpclient_test.py b/tornado/test/simple_httpclient_test.py index <HASH>..<HASH> 100644 --- a/tornado/test/simple_httpclient_test.py +++ b/tornado/test/simple_httpclient_test.py @@ -631,10 +631,11 @@ class HTTP204NoContentTestCase(AsyncHTTPTestCase): def test_204_invalid_content_...
Skip testing malformed <I> responses for curl http client
py
diff --git a/spacy/about.py b/spacy/about.py index <HASH>..<HASH> 100644 --- a/spacy/about.py +++ b/spacy/about.py @@ -4,7 +4,7 @@ # fmt: off __title__ = "spacy-nightly" -__version__ = "2.1.0a11" +__version__ = "2.1.0a12" __summary__ = "Industrial-strength Natural Language Processing (NLP) with Python and Cython" ...
Set version to <I>a<I>
py
diff --git a/command/register.py b/command/register.py index <HASH>..<HASH> 100644 --- a/command/register.py +++ b/command/register.py @@ -13,6 +13,11 @@ import StringIO, ConfigParser from distutils.core import Command from distutils.errors import * +def raw_input(prompt): + sys.stdout.write(prompt) + sys.std...
Get rid of a bunch more raw_input references
py
diff --git a/libre/apps/data_drivers/utils.py b/libre/apps/data_drivers/utils.py index <HASH>..<HASH> 100644 --- a/libre/apps/data_drivers/utils.py +++ b/libre/apps/data_drivers/utils.py @@ -264,7 +264,10 @@ def get_value(obj, attrib): try: return obj[attrib] except (KeyError, TypeError): - re...
Detect and report accesing unknown attributes of fields
py
diff --git a/runtests.py b/runtests.py index <HASH>..<HASH> 100755 --- a/runtests.py +++ b/runtests.py @@ -8,7 +8,8 @@ import sys if not settings.configured: os.environ.setdefault("DJANGO_SETTINGS_MODULE", "testproj.settings") - django.setup() + if django.VERSION >= (1,7): + django.setup() mod...
Fix running tests on lower Django versions
py
diff --git a/test/test_extract_fuzzy.py b/test/test_extract_fuzzy.py index <HASH>..<HASH> 100644 --- a/test/test_extract_fuzzy.py +++ b/test/test_extract_fuzzy.py @@ -106,6 +106,23 @@ class TestExtractFuzzy(unittest.TestCase): ] self.assertEqual(keyword_proc.extract_keywords(sentence, span_info=True, ...
fuzzy extract_keywords : [ADD] testing for intermediate matches
py
diff --git a/spyder/utils/tests/test_bsdsocket.py b/spyder/utils/tests/test_bsdsocket.py index <HASH>..<HASH> 100644 --- a/spyder/utils/tests/test_bsdsocket.py +++ b/spyder/utils/tests/test_bsdsocket.py @@ -9,6 +9,7 @@ Tests for bsdsocket.py """ # Standard library imports +import os import socket # Test library...
Skip test_bsdsockets in windows.
py
diff --git a/pysat/_instrument.py b/pysat/_instrument.py index <HASH>..<HASH> 100644 --- a/pysat/_instrument.py +++ b/pysat/_instrument.py @@ -2129,6 +2129,10 @@ class Instrument(object): elif isinstance(newData, xr.DataArray): self[newData.name] = newData + ...
ENH: Added support for xarray.DataSets in custom_attach
py
diff --git a/source/rafcon/mvc/controllers/graphical_editor_gaphas.py b/source/rafcon/mvc/controllers/graphical_editor_gaphas.py index <HASH>..<HASH> 100644 --- a/source/rafcon/mvc/controllers/graphical_editor_gaphas.py +++ b/source/rafcon/mvc/controllers/graphical_editor_gaphas.py @@ -401,6 +401,8 @@ class GraphicalEd...
Ignore change of parent in graphical editor (Gaphas)
py
diff --git a/nats/io/client.py b/nats/io/client.py index <HASH>..<HASH> 100644 --- a/nats/io/client.py +++ b/nats/io/client.py @@ -67,6 +67,7 @@ DEFAULT_READ_CHUNK_SIZE = 32768 * 2 DEFAULT_PENDING_SIZE = 1024 * 1024 DEFAULT_MAX_PAYLOAD_SIZE = 1048576 +PROTOCOL = 1 class Client(object): """ @@ -900,6...
Add servers, discovered_servers, connected_url APIs
py
diff --git a/klab/cloning/cloning.py b/klab/cloning/cloning.py index <HASH>..<HASH> 100644 --- a/klab/cloning/cloning.py +++ b/klab/cloning/cloning.py @@ -60,14 +60,15 @@ def make_codon_list(protein_seq, template_dna=None): except IndexError: template_codon = '---' # Already sorted by natural codon ...
allow blank spaces ('-') when reverse translating protein sequences
py
diff --git a/holoviews/plotting/mpl/__init__.py b/holoviews/plotting/mpl/__init__.py index <HASH>..<HASH> 100644 --- a/holoviews/plotting/mpl/__init__.py +++ b/holoviews/plotting/mpl/__init__.py @@ -152,6 +152,8 @@ options.Bars = Options('style', ec='k', color=Cycle()) options.Histogram = Options('style', ec='k', face...
Increased default 3D plot size slightly
py
diff --git a/python3/weatheralerts/nws.py b/python3/weatheralerts/nws.py index <HASH>..<HASH> 100755 --- a/python3/weatheralerts/nws.py +++ b/python3/weatheralerts/nws.py @@ -25,7 +25,11 @@ import os import sys import re -from urllib import request +try: + from urllib import request +except: + from urllib impo...
adding try on request import, with note about python3 vs 2 support
py
diff --git a/tests/tokenization_test.py b/tests/tokenization_test.py index <HASH>..<HASH> 100644 --- a/tests/tokenization_test.py +++ b/tests/tokenization_test.py @@ -12,16 +12,17 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permis...
fix unicode in tokenization tests
py
diff --git a/mplleaflet/maptiles.py b/mplleaflet/maptiles.py index <HASH>..<HASH> 100644 --- a/mplleaflet/maptiles.py +++ b/mplleaflet/maptiles.py @@ -30,8 +30,8 @@ esri_natgeo = ( ) esri_worldtopo = ( - 'http://server.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer/tile/{z}/{y}/{x}.png' - 'Til...
fixed copyright and added missing , - and acutally tested
py
diff --git a/dist/src/main/dist/bin/benchmark-report.py b/dist/src/main/dist/bin/benchmark-report.py index <HASH>..<HASH> 100755 --- a/dist/src/main/dist/bin/benchmark-report.py +++ b/dist/src/main/dist/bin/benchmark-report.py @@ -468,7 +468,7 @@ class Worker: self.__load_dstat, args=[...
Benchmark report pause time as points
py
diff --git a/astrobase/hatlc.py b/astrobase/hatlc.py index <HASH>..<HASH> 100644 --- a/astrobase/hatlc.py +++ b/astrobase/hatlc.py @@ -1315,7 +1315,7 @@ def normalize_lcdict_instruments(lcdict, else: LOGWARNING('no %s available in lcdict, ' 'normaliz...
hatlc.normalize_lcdict_instruments: fixing bugs
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,6 @@ setup( packages=find_packages(), author='Shekhar Tiwatne', author_email='pythonic@gmail.com', - url="http://flavors.me/shon", license="http://www.opensource.org/licenses/mit-license.php", ...
Update setup.py URL is not required. Install pays visit to specified url.
py
diff --git a/tests/test_utils.py b/tests/test_utils.py index <HASH>..<HASH> 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -143,3 +143,11 @@ class TestUtils(object): status = await utils.retry_async(always_fail) assert status is None assert retry_count['always_f...
<I>% coverage with integration
py
diff --git a/anyconfig/backend/xml.py b/anyconfig/backend/xml.py index <HASH>..<HASH> 100644 --- a/anyconfig/backend/xml.py +++ b/anyconfig/backend/xml.py @@ -35,11 +35,6 @@ from __future__ import absolute_import from io import BytesIO import sys - -import anyconfig.backend.base -import anyconfig.compat -import any...
refactor: re-order imports to import standard lib/3rd party ones before app-specific ones
py
diff --git a/gutenberg/acquire/text.py b/gutenberg/acquire/text.py index <HASH>..<HASH> 100644 --- a/gutenberg/acquire/text.py +++ b/gutenberg/acquire/text.py @@ -24,7 +24,7 @@ from gutenberg._util.os import remove _TEXT_CACHE = local_path('text') _GUTENBERG_MIRROR = os.environ.get('GUTENBERG_MIRROR', - ...
Update text download mirror (#<I>)
py
diff --git a/src/pyws/adapters/_wsgi.py b/src/pyws/adapters/_wsgi.py index <HASH>..<HASH> 100644 --- a/src/pyws/adapters/_wsgi.py +++ b/src/pyws/adapters/_wsgi.py @@ -29,7 +29,7 @@ def create_application(server, root_url): content_type = 'text/plain' status = '200 OK' - if tail.startswith(roo...
Fixed behaviour in case the tail start with a slash If the variable tail contains a value like "/root" it would be impossible to access the WebService. This fixes the behaviour, making it work in both cases ("root" or "/root")
py
diff --git a/pushbaby/pushconnection.py b/pushbaby/pushconnection.py index <HASH>..<HASH> 100644 --- a/pushbaby/pushconnection.py +++ b/pushbaby/pushconnection.py @@ -70,6 +70,7 @@ class PushConnection: self.sent = {} self.last_push_sent = None self.last_failed_seq = None + self.open_e...
Fix potential race if a push is sent whilst another is waiting for a connection to open.
py
diff --git a/tests/remote/test_transports_http.py b/tests/remote/test_transports_http.py index <HASH>..<HASH> 100644 --- a/tests/remote/test_transports_http.py +++ b/tests/remote/test_transports_http.py @@ -250,6 +250,15 @@ class TransportsTest(unittest.TestCase): self.assertEqual(state, "call-error") ...
Added RS test for HTTP Transport: undefined method
py
diff --git a/claptcha/__init__.py b/claptcha/__init__.py index <HASH>..<HASH> 100644 --- a/claptcha/__init__.py +++ b/claptcha/__init__.py @@ -33,11 +33,11 @@ Examples: >>> def captchaStr(): ... return "TextFromFunc" ... ->>> # Redefine c: change its size to 100x30, use nearest resampling filter +>>> # Redefine ...
Example: 'nearest' to 'bicubic' resample filter
py
diff --git a/wikitextparser/_wikitext.py b/wikitextparser/_wikitext.py index <HASH>..<HASH> 100644 --- a/wikitextparser/_wikitext.py +++ b/wikitextparser/_wikitext.py @@ -1,9 +1,5 @@ """Define the WikiText and SubWikiText classes.""" -# Todo: see if it is possible to use shadow position instead of using subpsans -# ...
chore: remove some of the old todo comments The performance is currently good enough. I have no plans for these.
py
diff --git a/tests/helpers.py b/tests/helpers.py index <HASH>..<HASH> 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -38,4 +38,4 @@ def build_payload(intent, params={}, contexts=[], action='test_action', query='t def get_query_response(client, payload): resp = client.post('/', data=payload) assert r...
decode response, to allow json dumps
py
diff --git a/auto_lens/analysis/analysis_image.py b/auto_lens/analysis/analysis_image.py index <HASH>..<HASH> 100644 --- a/auto_lens/analysis/analysis_image.py +++ b/auto_lens/analysis/analysis_image.py @@ -178,9 +178,9 @@ def setup_border_pixels(mask): for y in range(image_dimensions_pixels[0]): for x in...
simplified logic (look at this one jam)
py
diff --git a/blobxfer/retry.py b/blobxfer/retry.py index <HASH>..<HASH> 100644 --- a/blobxfer/retry.py +++ b/blobxfer/retry.py @@ -46,6 +46,12 @@ _RETRYABLE_ERRNO_MAXRETRY = frozenset(( '[Errno {}]'.format(errno.ECONNREFUSED), '[Errno {}]'.format(errno.ENETRESET), '[Errno {}]'.format(errno.ETIMEDOUT), + ...
Add WinErrors for retry
py
diff --git a/utm/conversion.py b/utm/conversion.py index <HASH>..<HASH> 100755 --- a/utm/conversion.py +++ b/utm/conversion.py @@ -33,7 +33,31 @@ ZONE_LETTERS = "CDEFGHJKLMNPQRSTUVWXX" def to_latlon(easting, northing, zone_number, zone_letter=None, northern=None, strict=True): + """This function convert an UTM ...
included docstring to conversion.py
py
diff --git a/fermipy/fits_utils.py b/fermipy/fits_utils.py index <HASH>..<HASH> 100644 --- a/fermipy/fits_utils.py +++ b/fermipy/fits_utils.py @@ -208,5 +208,7 @@ def dict_to_table(input_dict): cols += [Column(name=k, dtype=bool, data=np.array([v]))] elif utils.isstr(v): cols += [Colu...
Support vector columns in dict_to_table.
py
diff --git a/examples/facerec_ipcamera_knn.py b/examples/facerec_ipcamera_knn.py index <HASH>..<HASH> 100644 --- a/examples/facerec_ipcamera_knn.py +++ b/examples/facerec_ipcamera_knn.py @@ -209,6 +209,6 @@ if __name__ == "__main__": frame = show_prediction_labels_on_image(frame, predictions) ...
There is a typo in face_recognition/example/facerec_ipcamera_knn.py The third last line is written as cap1.release(). It should be cap.release instead. cap1.release() > cap.release()
py
diff --git a/junction/formatting.py b/junction/formatting.py index <HASH>..<HASH> 100644 --- a/junction/formatting.py +++ b/junction/formatting.py @@ -3,10 +3,9 @@ from functools import reduce, wraps class EscapeSequenceStack: - def __init__(self, esc_seq): + def __init__(self, default_escape_sequence): + ...
Make escape sequence stack take a default_escape_sequence... which will be output as a prefix to the output of every 'pop'
py
diff --git a/terms/html.py b/terms/html.py index <HASH>..<HASH> 100644 --- a/terms/html.py +++ b/terms/html.py @@ -73,8 +73,8 @@ def get_interesting_contents(parent_node, replace_regexp): if TERMS_ENABLED: - def replace_terms(html): - html = force_text(html) + def replace_terms(original_html): + ...
If nothing interesting is found, return the original HTML instead of rebuilding it.
py
diff --git a/cosmic_ray/config.py b/cosmic_ray/config.py index <HASH>..<HASH> 100644 --- a/cosmic_ray/config.py +++ b/cosmic_ray/config.py @@ -57,6 +57,16 @@ class ConfigDict(dict): except KeyError as exc: raise ConfigKeyError(*exc.args) + def sub(self, *segments): + "Get a sub-configu...
Added "sub()" function to ConfigDict.
py
diff --git a/kafka/util.py b/kafka/util.py index <HASH>..<HASH> 100644 --- a/kafka/util.py +++ b/kafka/util.py @@ -7,6 +7,9 @@ from kafka.common import BufferUnderflowError def write_int_string(s): + if s is not None and not isinstance(s, str): + raise TypeError('Expected "%s" to be str\n' + ...
Fix write_int and write_short type validation It will still die, just as before, but it now includes a *helpful* error message
py
diff --git a/airflow/models.py b/airflow/models.py index <HASH>..<HASH> 100644 --- a/airflow/models.py +++ b/airflow/models.py @@ -175,6 +175,9 @@ class DagBag(object): for subdag in dag.subdags: subdag.full_filepath = dag.full_filepath subdag.parent_dag = dag + subdag.last...
Fix bug where fileloc didn't trickle into subdags
py
diff --git a/salt/config/__init__.py b/salt/config/__init__.py index <HASH>..<HASH> 100644 --- a/salt/config/__init__.py +++ b/salt/config/__init__.py @@ -1913,6 +1913,7 @@ def cloud_config(path, env_var='SALT_CLOUD_CONFIG', defaults=None, os.path.abspath( os.path.join( os.path.di...
Reimplement #<I>, which got crunched in a merge-forward. This fixes #<I> for the <I> branch. Also refs #<I>
py
diff --git a/arthur/_version.py b/arthur/_version.py index <HASH>..<HASH> 100644 --- a/arthur/_version.py +++ b/arthur/_version.py @@ -1,2 +1,2 @@ # Versions compliant with PEP 440 https://www.python.org/dev/peps/pep-0440 -__version__ = "0.1.8" +__version__ = "0.1.9"
Update version number to <I>
py
diff --git a/test/test_context.py b/test/test_context.py index <HASH>..<HASH> 100644 --- a/test/test_context.py +++ b/test/test_context.py @@ -126,9 +126,9 @@ class TestCartoContext(unittest.TestCase): self.assertEqual(cc.creds.base_url(), self.baseurl.strip('/')) self.assertEqual(cc.creds.username(),...
adds test for non-auth setups
py
diff --git a/alot/account.py b/alot/account.py index <HASH>..<HASH> 100644 --- a/alot/account.py +++ b/alot/account.py @@ -167,7 +167,7 @@ class SendmailAccount(Account): def errb(failure): termobj = failure.value errmsg = '%s failed with code %s:\n%s' % \ - (self.cmd, ...
dont use trace as notification string closes #<I>
py
diff --git a/bearychat/rtm_message.py b/bearychat/rtm_message.py index <HASH>..<HASH> 100644 --- a/bearychat/rtm_message.py +++ b/bearychat/rtm_message.py @@ -91,7 +91,7 @@ class RTMMessage(object): Returns: True if current message is sent by the user """ - return self['id'] == use...
fix(rtm/message): compare with `uid` field
py
diff --git a/openquake/risklib/asset.py b/openquake/risklib/asset.py index <HASH>..<HASH> 100644 --- a/openquake/risklib/asset.py +++ b/openquake/risklib/asset.py @@ -253,6 +253,12 @@ aids_dt = numpy.dtype([('aids', hdf5.vuint32)]) class AssetCollection(object): + # the information about the assets is store in ...
Added a comment [skip CI]
py
diff --git a/examples/dropping-shapes.py b/examples/dropping-shapes.py index <HASH>..<HASH> 100644 --- a/examples/dropping-shapes.py +++ b/examples/dropping-shapes.py @@ -30,7 +30,8 @@ class World(lmj.sim.physics.World): def reset(self): for b in self.bodies: b.position = np.array([0, 0, 10])...
Use module-scoped make_quaternion.
py
diff --git a/librosa/core/spectrum.py b/librosa/core/spectrum.py index <HASH>..<HASH> 100644 --- a/librosa/core/spectrum.py +++ b/librosa/core/spectrum.py @@ -1447,9 +1447,11 @@ def pcen(S, sr=22050, hop_length=512, gain=0.98, bias=2, power=0.5, else: ref_spec = scipy.ndimage.maximum_filter1d(S, max_size,...
speedup and stability for pcen
py