diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/pydevconsole.py b/pydevconsole.py index <HASH>..<HASH> 100644 --- a/pydevconsole.py +++ b/pydevconsole.py @@ -80,10 +80,18 @@ try: from pydev_imports import execfile __builtin__.execfile = execfile - except: pass +# Pull in runfile, the interface to UMD that wraps execfile +from...
Restoring runfile in pydevconsole.
py
diff --git a/tests/test_cli.py b/tests/test_cli.py index <HASH>..<HASH> 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -7,7 +7,7 @@ def test_cli_fails_to_start_given_an_invalid_broker_name(start_cli): # Given that this module doesn't define a broker called "idontexist" # When I start the cli and po...
test: increate cli test wait time for travis
py
diff --git a/dwm/cleaning.py b/dwm/cleaning.py index <HASH>..<HASH> 100644 --- a/dwm/cleaning.py +++ b/dwm/cleaning.py @@ -64,10 +64,7 @@ def NormIncludesLookup(fieldVal, db, fieldName, histObj={}): for row in incVal: - row['includes'] = _DataClean_(row['includes']) - row['excludes'] = _DataClean...
relocated _DataClean_ in NormIncludesLookup
py
diff --git a/openstack_dashboard/dashboards/settings/user/tests.py b/openstack_dashboard/dashboards/settings/user/tests.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/settings/user/tests.py +++ b/openstack_dashboard/dashboards/settings/user/tests.py @@ -27,7 +27,6 @@ class UserSettingsTest(test.Tes...
Removing Moscow's timezone check MOSCOW on October <I> has turned its clocks back one hour switching to permanent "winter" time and ending the three-year experiment of living on permanent "summer time." No seasonal time change is envisaged from now on. For safety, we remove this timezone check Change-Id: I<I>f8f7adb...
py
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index <HASH>..<HASH> 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -156,7 +156,7 @@ class BotBase(GroupMixin[None]): self, command_prefix: PrefixType[BotT], help_command: Optional[HelpComman...
[commands] Fix unknown generic type in tree_cls
py
diff --git a/timepiece/views.py b/timepiece/views.py index <HASH>..<HASH> 100644 --- a/timepiece/views.py +++ b/timepiece/views.py @@ -1199,11 +1199,12 @@ def payroll_summary(request): month_entries_valid = month_entries.filter(monthQ, statusQ, workQ) labels, monthly_totals = utils.payroll_totals(month_entrie...
refs #<I> - Removed ordering from entries list Since default ordering was added to Entry, queryset.values(..).distinct() wasn't working.
py
diff --git a/neuropythy/vision/cmag.py b/neuropythy/vision/cmag.py index <HASH>..<HASH> 100644 --- a/neuropythy/vision/cmag.py +++ b/neuropythy/vision/cmag.py @@ -194,7 +194,6 @@ def path_cortical_magnification(mesh, path, mask=None, return_all=False, ss.append(pt) # here is the line segment we want t...
added some bug fixes that make things more stable
py
diff --git a/exchangelib/version.py b/exchangelib/version.py index <HASH>..<HASH> 100644 --- a/exchangelib/version.py +++ b/exchangelib/version.py @@ -37,6 +37,7 @@ VERSIONS = { 'Exchange2015': ('Exchange2015', 'Microsoft Exchange Server 2015'), 'Exchange2015_SP1': ('Exchange2015_SP1', 'Microsoft Exchange Ser...
Support version of Exchange server <I> (#<I>)
py
diff --git a/haphilipsjs/__init__.py b/haphilipsjs/__init__.py index <HASH>..<HASH> 100644 --- a/haphilipsjs/__init__.py +++ b/haphilipsjs/__init__.py @@ -178,7 +178,7 @@ class PhilipsTV(object): def setVolume(self, level, muted=False): data = {} - if level: + if level is not None: ...
Don't treat level 0 as None
py
diff --git a/yandextank/plugins/Phantom/reader.py b/yandextank/plugins/Phantom/reader.py index <HASH>..<HASH> 100644 --- a/yandextank/plugins/Phantom/reader.py +++ b/yandextank/plugins/Phantom/reader.py @@ -127,7 +127,7 @@ class PhantomStatsReader(StatsReader): reqps = 0 if 0 <= offset < len(s...
int req per seconds for stats ref:0d<I>ee<I>cbd7e<I>f<I>cdca6ecc<I>c2
py
diff --git a/pgpy/packet/types.py b/pgpy/packet/types.py index <HASH>..<HASH> 100644 --- a/pgpy/packet/types.py +++ b/pgpy/packet/types.py @@ -118,15 +118,27 @@ class HashAlgo(PFIntEnum): @property def hasher(self): + if self == HashAlgo.MD5: + return hashes.MD5() + if self == Has...
filled in missing HashAlgo hash algorithms
py
diff --git a/cmsplugin_cascade/bootstrap3/container.py b/cmsplugin_cascade/bootstrap3/container.py index <HASH>..<HASH> 100644 --- a/cmsplugin_cascade/bootstrap3/container.py +++ b/cmsplugin_cascade/bootstrap3/container.py @@ -117,7 +117,7 @@ class BootstrapRowForm(ManageChildrenFormMixin, ModelForm): class BootstrapR...
Allow Row as child of Jumbotron
py
diff --git a/openquake/server/manage.py b/openquake/server/manage.py index <HASH>..<HASH> 100755 --- a/openquake/server/manage.py +++ b/openquake/server/manage.py @@ -49,9 +49,12 @@ def dbcmd(action, *args): if __name__ == "__main__": os.environ.setdefault( "DJANGO_SETTINGS_MODULE", "openquake.server.set...
Call the db server in manage.py only for runserver
py
diff --git a/pymongo/ssl_support.py b/pymongo/ssl_support.py index <HASH>..<HASH> 100644 --- a/pymongo/ssl_support.py +++ b/pymongo/ssl_support.py @@ -65,7 +65,7 @@ if HAVE_SSL: return value raise ValueError("The value of %s must be one of: " "`ssl.CERT_NONE`, `ssl.CERT_O...
Add missing backquote for CERT_REQUIRED
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -52,7 +52,7 @@ for dirpath, dirnames, filenames in os.walk(walk_dir): install_requires = [ "geoshape-geonode==1.3", "django-classification-banner>=0.1.4", - "django-maploom==1.2.2", + "django-m...
django-maploom <I> has timeline
py
diff --git a/openquake/engine/db/models.py b/openquake/engine/db/models.py index <HASH>..<HASH> 100644 --- a/openquake/engine/db/models.py +++ b/openquake/engine/db/models.py @@ -791,9 +791,10 @@ class HazardCalculation(djm.Model): sites.append(Site(pt, vs30, measured, z1pt0, z2pt5, hsite.id)) ...
Reflected the change of API in SiteCollection.from_points
py
diff --git a/tests/unit/test_connection.py b/tests/unit/test_connection.py index <HASH>..<HASH> 100644 --- a/tests/unit/test_connection.py +++ b/tests/unit/test_connection.py @@ -870,6 +870,13 @@ class ConnectionTest(unittest.TestCase): self.assertEqual(self.connection.get_session(), True) @patch.object...
Adding unit test to validate new except block
py
diff --git a/wikitextparser/wikitextparser_test.py b/wikitextparser/wikitextparser_test.py index <HASH>..<HASH> 100644 --- a/wikitextparser/wikitextparser_test.py +++ b/wikitextparser/wikitextparser_test.py @@ -317,11 +317,17 @@ class Sections(unittest.TestCase): wt = wtp.WikiText('== s ==\nc\n') self...
Add multiline_with_carriage_return as an expectedFailure
py
diff --git a/pysparkling/sql/expressions/expressions.py b/pysparkling/sql/expressions/expressions.py index <HASH>..<HASH> 100644 --- a/pysparkling/sql/expressions/expressions.py +++ b/pysparkling/sql/expressions/expressions.py @@ -148,3 +148,20 @@ class UnaryExpression(Expression): def __str__(self): ra...
Add a BinaryOperation class
py
diff --git a/gwpy/tests/test_timeseries.py b/gwpy/tests/test_timeseries.py index <HASH>..<HASH> 100644 --- a/gwpy/tests/test_timeseries.py +++ b/gwpy/tests/test_timeseries.py @@ -53,7 +53,6 @@ from gwpy.types import Array2D from gwpy.spectrogram import Spectrogram from gwpy.plotter import (TimeSeriesPlot, SegmentPlot...
tests: removed reference to common.py
py
diff --git a/tests/test_transport.py b/tests/test_transport.py index <HASH>..<HASH> 100644 --- a/tests/test_transport.py +++ b/tests/test_transport.py @@ -411,8 +411,12 @@ class TransportTest (unittest.TestCase): schan.send('hello\n') - # something should be ready now - r, w, ...
[project @ Arch-1:<EMAIL><I>-master-shake%paramiko--dev--1--patch-<I>] bulletproof the select test in test_transport more
py
diff --git a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py b/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py index <HASH>..<HASH> 100644 --- a/sdk/communication/azure-communication-chat/tests/test_chat_client_e2e.py +++ b/sdk/communication/azure-communication-chat/tes...
Change the expected behaviour of test_access_token_validation since _shared code is now sync across packages (#<I>)
py
diff --git a/raiden/tests/integration/network/transport/test_matrix_transport_assumptions.py b/raiden/tests/integration/network/transport/test_matrix_transport_assumptions.py index <HASH>..<HASH> 100644 --- a/raiden/tests/integration/network/transport/test_matrix_transport_assumptions.py +++ b/raiden/tests/integration/...
Use public_room ID in asserts
py
diff --git a/subdownloader/client/gui/main.py b/subdownloader/client/gui/main.py index <HASH>..<HASH> 100644 --- a/subdownloader/client/gui/main.py +++ b/subdownloader/client/gui/main.py @@ -114,6 +114,7 @@ class Main(QMainWindow): self.read_settings() # self.treeView.reset() self.ui.splitter...
gui: Don't let the two panels in the search tab collapse
py
diff --git a/quart/serving.py b/quart/serving.py index <HASH>..<HASH> 100644 --- a/quart/serving.py +++ b/quart/serving.py @@ -221,8 +221,8 @@ class H2Server(HTTPProtocol): elif isinstance(event, h2.events.WindowUpdated): self._window_updated(event.stream_id) elif isinstance(e...
Correctly handle ConnectionTerminated and delete streams A ConnectionTerminated event kills all streams, and hence has no stream_id. Additionally the Stream itself should be deleted after the entire response has been sent.
py
diff --git a/neo.py b/neo.py index <HASH>..<HASH> 100755 --- a/neo.py +++ b/neo.py @@ -854,7 +854,7 @@ def deploy(depth=None, protocol=None): if os.path.isdir(lib.path): if lib.check_repo(): with cd(lib.path): - deploy(depth=depth, protocol=protocol) + ...
deploy() will call update() for existing libraries and update them to the correct revision.
py
diff --git a/thefuck/rules/systemctl.py b/thefuck/rules/systemctl.py index <HASH>..<HASH> 100644 --- a/thefuck/rules/systemctl.py +++ b/thefuck/rules/systemctl.py @@ -1,16 +1,21 @@ """ -The confusion in systemctl's param order is massive +The confusion in systemctl's param order is massive. """ from thefuck.utils im...
Cleanup the systemctl rule
py
diff --git a/pycbc/filter/resample.py b/pycbc/filter/resample.py index <HASH>..<HASH> 100644 --- a/pycbc/filter/resample.py +++ b/pycbc/filter/resample.py @@ -28,7 +28,7 @@ from pycbc.types import TimeSeries _resample_func = {numpy.dtype('float32'): lal.ResampleREAL4TimeSeries, numpy.dtype('float64')...
fixed mistake in resamle variable name
py
diff --git a/pysam/samtools.py b/pysam/samtools.py index <HASH>..<HASH> 100644 --- a/pysam/samtools.py +++ b/pysam/samtools.py @@ -39,6 +39,7 @@ SAMTOOLS_DISPATCH = { "flags": ("flags", None), "ampliconclip": ("ampliconclip", None), "ampliconstats": ("ampliconstats", None), + "version": ("version", No...
Add new version subcommand to pysam/samtools.py
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -11,6 +11,7 @@ setup( keywords = ['terraform', 'assert', 'testing'], packages = find_packages(), install_requires=[ - "pyhcl" + "pyhcl", + "gitpython" ], )
Added missing gitpython dependency to setup.py
py
diff --git a/mpyq.py b/mpyq.py index <HASH>..<HASH> 100755 --- a/mpyq.py +++ b/mpyq.py @@ -33,7 +33,7 @@ MPQFileHeader = namedtuple('MPQFileHeader', block_table_entries ''' ) -MPQFileHeader.struct_format = '<4s2i2h4i' +MPQFileHeader.struct_format = '<4s2I2H4I' MPQFileHeaderExt = namedtuple('MPQFileHeaderE...
Fixed some pack formats to use unsigned numeric values.
py
diff --git a/pypika/functions.py b/pypika/functions.py index <HASH>..<HASH> 100644 --- a/pypika/functions.py +++ b/pypika/functions.py @@ -107,8 +107,8 @@ class Date(Function): class DateDiff(Function): - def __init__(self, interval, term, alias=None): - super(DateDiff, self).__init__('DATEDIFF', interva...
Fixed datediff to accept two params
py
diff --git a/nidmresults/objects/inference.py b/nidmresults/objects/inference.py index <HASH>..<HASH> 100644 --- a/nidmresults/objects/inference.py +++ b/nidmresults/objects/inference.py @@ -330,8 +330,8 @@ class Cluster(NIDMObject): # FIXME deal with multiple contrasts self.p.entity(self.id, other_...
Cluster -> Significant Cluster (and cluster number formatting)
py
diff --git a/playhouse/sqliteq.py b/playhouse/sqliteq.py index <HASH>..<HASH> 100644 --- a/playhouse/sqliteq.py +++ b/playhouse/sqliteq.py @@ -134,12 +134,14 @@ class SqliteQueueDatabase(SqliteExtDatabase): self._autostart = autostart self._results_timeout = results_timeout self._num_readers ...
Allow thread helper to be pluggable.
py
diff --git a/changuito/proxy.py b/changuito/proxy.py index <HASH>..<HASH> 100644 --- a/changuito/proxy.py +++ b/changuito/proxy.py @@ -44,7 +44,8 @@ class CartProxy: cart_id = request.session.get(CART_ID) if cart_id: try: - cart = models.Cart.objects.get(id=...
Adding to the proxy method is_empty and some pep8
py
diff --git a/tests/test_geocoder.py b/tests/test_geocoder.py index <HASH>..<HASH> 100644 --- a/tests/test_geocoder.py +++ b/tests/test_geocoder.py @@ -1,5 +1,7 @@ #!/usr/bin/python # coding: utf8 +import pytest +from requests.packages.urllib3.exceptions import TimeoutError import geocoder @@ -123,6 +125,7 @@ def...
Use xfail to ignore test failure on TimeoutError
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ license: GNU-GPL2 from setuptools import setup setup(name='pyprofiler', - version='44', + version='45', description='Profiler utility for python, graphical and textual, whole program or segmen...
pip Wednesday <I> May <I> (week:<I> day:<I>), <I>:<I>:<I>
py
diff --git a/spyder/__init__.py b/spyder/__init__.py index <HASH>..<HASH> 100644 --- a/spyder/__init__.py +++ b/spyder/__init__.py @@ -29,7 +29,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. """ -version_info = (4, 1, 3) +version_info = (4, 2, 0, "dev0") __vers...
Back to work [ci skip]
py
diff --git a/qeventlog/tasks.py b/qeventlog/tasks.py index <HASH>..<HASH> 100644 --- a/qeventlog/tasks.py +++ b/qeventlog/tasks.py @@ -8,7 +8,6 @@ from qeventlog.models import QEvent LOG = logging.getLogger (__name__) - @logtool.log_call def sentry_exception (e, request, message = None): sentry_tags = {"compo...
Sentry on failed jobs plus retry
py
diff --git a/cafe/database/sqlalchemy/session.py b/cafe/database/sqlalchemy/session.py index <HASH>..<HASH> 100644 --- a/cafe/database/sqlalchemy/session.py +++ b/cafe/database/sqlalchemy/session.py @@ -1,5 +1,7 @@ from functools import wraps +from os import getenv + from sqlalchemy.orm import sessionmaker from ...
Allow env variable to set SQLAlchemy echo in SQLAlchemyDatabaseManager SQLAlchemyDatabaseManager.instance() checks a DATABASE_ECHO environment variable and sets the SQLAlchemy engine.echo for the session appropriately. Echo can be set to True, False (default), or debug. Relates to SL-<I>
py
diff --git a/tests/test_core.py b/tests/test_core.py index <HASH>..<HASH> 100644 --- a/tests/test_core.py +++ b/tests/test_core.py @@ -44,7 +44,13 @@ class TestBlock(unittest.TestCase): foo = net1 > net2 with self.assertRaises(pyrtl.PyrtlError): foo = net1 >= net2 - + def test_logi...
Added a unit test for logic_subset
py
diff --git a/pwaqi/__init__.py b/pwaqi/__init__.py index <HASH>..<HASH> 100644 --- a/pwaqi/__init__.py +++ b/pwaqi/__init__.py @@ -32,17 +32,10 @@ def getToken(stationCode): def getUID(): return "abcde" + datetime.now().strftime("%s000") -def getStationObservation(stationCode, locationName='', language = "en"): -...
Require token to send request to AQI API endpoint.
py
diff --git a/tpot/_version.py b/tpot/_version.py index <HASH>..<HASH> 100644 --- a/tpot/_version.py +++ b/tpot/_version.py @@ -17,4 +17,4 @@ You should have received a copy of the GNU General Public License along with the TPOT library. If not, see http://www.gnu.org/licenses/. """ -__version__ = '0.4' +__version__ ...
Minor version increment for export bug fix release
py
diff --git a/lib/methods/scripts.py b/lib/methods/scripts.py index <HASH>..<HASH> 100644 --- a/lib/methods/scripts.py +++ b/lib/methods/scripts.py @@ -141,8 +141,11 @@ class ScriptMethod(BaseMethod): replacements = self.expandVariables(variables); commands = self.expandCommands(script, replacements) + # ...
Run replacement-expansion 2 times.
py
diff --git a/sos/sos_task.py b/sos/sos_task.py index <HASH>..<HASH> 100644 --- a/sos/sos_task.py +++ b/sos/sos_task.py @@ -609,8 +609,13 @@ class TaskEngine(threading.Thread): # default self.max_running_jobs = 10 # - # multiple threads for job submission and status checking - ...
Fix a job submisson bug caused by multi-thread job submission
py
diff --git a/bika/lims/content/artemplate.py b/bika/lims/content/artemplate.py index <HASH>..<HASH> 100644 --- a/bika/lims/content/artemplate.py +++ b/bika/lims/content/artemplate.py @@ -169,6 +169,8 @@ class ARTemplate(BaseContent): """ uid = None if value: + # Strip "Lab: " from ...
Strip "Lab: " prefix from lab sample points in AR Template add
py
diff --git a/src/python/twitter/pants/tasks/jvm_compile/jvm_compile.py b/src/python/twitter/pants/tasks/jvm_compile/jvm_compile.py index <HASH>..<HASH> 100644 --- a/src/python/twitter/pants/tasks/jvm_compile/jvm_compile.py +++ b/src/python/twitter/pants/tasks/jvm_compile/jvm_compile.py @@ -326,6 +326,10 @@ class JvmCom...
Make sure zinc gets a change to account for deleted/moved source files. (sapling split of 2d<I>dc<I>c<I>fa<I>f6db<I>a9)
py
diff --git a/spyder/plugins/editor/lsp/client.py b/spyder/plugins/editor/lsp/client.py index <HASH>..<HASH> 100644 --- a/spyder/plugins/editor/lsp/client.py +++ b/spyder/plugins/editor/lsp/client.py @@ -244,7 +244,11 @@ class LSPClient(QObject, LSPMethodProviderMixIn): logger.debug('{} Response err...
LSP: Emit traceback when receiving PyLS errors
py
diff --git a/locu/api.py b/locu/api.py index <HASH>..<HASH> 100644 --- a/locu/api.py +++ b/locu/api.py @@ -316,7 +316,8 @@ class VenueApiClient(HttpApiClient): def is_open(self,id,time,day): """ - Checks of the venus is open at the time of day given a venue id. + Checks of the venue is open ...
fixed spelling error and added note on how to get string from time object
py
diff --git a/noxfile.py b/noxfile.py index <HASH>..<HASH> 100644 --- a/noxfile.py +++ b/noxfile.py @@ -54,6 +54,9 @@ RUNTESTS_LOGFILE = os.path.join( 'runtests-{}.log'.format(datetime.datetime.now().strftime('%Y%m%d%H%M%S.%f')) ) +# Prevent Python from writing bytecode +os.environ[str('PYTHONDONTWRITEBYTECODE')...
Prevent bytecode from being written do disk
py
diff --git a/master/buildbot/status/web/change_hook.py b/master/buildbot/status/web/change_hook.py index <HASH>..<HASH> 100644 --- a/master/buildbot/status/web/change_hook.py +++ b/master/buildbot/status/web/change_hook.py @@ -79,15 +79,11 @@ class ChangeHookResource(resource.Resource): dialect = 'base' ...
removing commented out try/except block
py
diff --git a/tests/conftest.py b/tests/conftest.py index <HASH>..<HASH> 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -7,11 +7,21 @@ from django.contrib.auth.models import AnonymousUser from django.contrib.messages.storage.fallback import FallbackStorage from django.contrib.sessions.backends.db import Ses...
Set celery always eager on test runs
py
diff --git a/hpcbench/driver.py b/hpcbench/driver.py index <HASH>..<HASH> 100644 --- a/hpcbench/driver.py +++ b/hpcbench/driver.py @@ -244,7 +244,7 @@ class HostDriver(Enumerator): else: assert mode == 'nodes' nodes = nodes.union(set(value)) - return nodes + ...
Fix: node list computation * Benchmark execution can provide the exact list of nodes it has to run on. * Execution context contains a sorted list of nodes
py
diff --git a/uncommitted/command.py b/uncommitted/command.py index <HASH>..<HASH> 100644 --- a/uncommitted/command.py +++ b/uncommitted/command.py @@ -50,7 +50,7 @@ def find_repositories_with_locate(path): def find_repositories_by_walking(path): """Walk a tree and return a sequence of (directory, dotdir) pairs.""...
Follow symlinks when walking.
py
diff --git a/windpowerlib/modelchain.py b/windpowerlib/modelchain.py index <HASH>..<HASH> 100644 --- a/windpowerlib/modelchain.py +++ b/windpowerlib/modelchain.py @@ -163,11 +163,17 @@ class Modelchain(object): """ # Check if temperature data is at hub height. + if 'temp_air_2' not in weather...
Check if temperature of second dataset is given at hub height
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -8,13 +8,13 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir))) setup( name='drf-generators', - version='0.1.5', + version='0.1.6', description='Generate DRF Serializers, View...
compatible with Python <I>. yay!
py
diff --git a/lambdaJSON.py b/lambdaJSON.py index <HASH>..<HASH> 100644 --- a/lambdaJSON.py +++ b/lambdaJSON.py @@ -1,8 +1,5 @@ import json -try: long -except: exec('class long: pass') - flatten = lambda obj: (isinstance(obj, bytes) and (b'bytes://'+obj).decode('utf8') ...
Support for py2 long with no hacks!
py
diff --git a/simplekv/__init__.py b/simplekv/__init__.py index <HASH>..<HASH> 100644 --- a/simplekv/__init__.py +++ b/simplekv/__init__.py @@ -24,6 +24,9 @@ class KeyValueStore(object): The regular expression for what constitutes a valid key is available as :data:`simplekv.VALID_KEY_REGEXP`. + + Values a...
Added note about the type of values.
py
diff --git a/tests.py b/tests.py index <HASH>..<HASH> 100644 --- a/tests.py +++ b/tests.py @@ -6,21 +6,19 @@ import unittest class BehaveDjangoTestCase(unittest.TestCase): def test_command_should_exit_zero_if_passing(self): - # FNULL = open(os.devnull, 'w') + FNULL = open(os.devnull, 'wb') ...
Revert disabled redirection, binary open /dev/null
py
diff --git a/charmhelpers/contrib/openstack/neutron.py b/charmhelpers/contrib/openstack/neutron.py index <HASH>..<HASH> 100644 --- a/charmhelpers/contrib/openstack/neutron.py +++ b/charmhelpers/contrib/openstack/neutron.py @@ -245,6 +245,8 @@ def neutron_plugins(): 'python-networking-midonet') plu...
Removing neutron-plugin-plumgrid from server-packages
py
diff --git a/km3pipe/io/aanet.py b/km3pipe/io/aanet.py index <HASH>..<HASH> 100644 --- a/km3pipe/io/aanet.py +++ b/km3pipe/io/aanet.py @@ -243,7 +243,7 @@ class AanetPump(Pump): if self.format != 'ancient_recolns': try: hits = RawHitSeries.from_aanet(event.hits, event_id) - ...
Dont correct MC times for real data
py
diff --git a/docs/conf.py b/docs/conf.py index <HASH>..<HASH> 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,7 +19,7 @@ import os try: import unitest.mock as mock except ImportError: - from mock + import mock import alabaster
Adding mocking to conf.py [ci skip]
py
diff --git a/binaryornot/check.py b/binaryornot/check.py index <HASH>..<HASH> 100755 --- a/binaryornot/check.py +++ b/binaryornot/check.py @@ -2,8 +2,8 @@ # -*- coding: utf-8 -*- def get_starting_chunk(filename): - with(filename, 'r') as f: - chunk = open(filename).read(1024) + with open(filename, 'r')...
Fix file opening and make tests pass.
py
diff --git a/Lib/ufo2ft/postProcessor.py b/Lib/ufo2ft/postProcessor.py index <HASH>..<HASH> 100644 --- a/Lib/ufo2ft/postProcessor.py +++ b/Lib/ufo2ft/postProcessor.py @@ -136,7 +136,7 @@ class PostProcessor(object): else: if "CFF " in self.otf: - logging.warning( + ...
postProcessor: use module-level named logger, not root logger
py
diff --git a/myfitnesspal/client.py b/myfitnesspal/client.py index <HASH>..<HASH> 100644 --- a/myfitnesspal/client.py +++ b/myfitnesspal/client.py @@ -226,6 +226,11 @@ class Client(MFPBase): return day + def get_measurements(self, *args, **kwargs): + document = self._get_document_for_url( + ...
#<I> Stubbed out the initial get_measurements method Currently only used for exercising the URL creation method. Will be expanded as functionality is fleshed out.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -28,9 +28,7 @@ def package_installed(pkg): install_requires=['PyYAML'] -if package_installed('good'): - install_requires.append('good') -elif package_installed('voluptuous'): +if package_installed('voluptuous'): i...
Fixed incorrect package_installed order
py
diff --git a/pyasn1/type/univ.py b/pyasn1/type/univ.py index <HASH>..<HASH> 100644 --- a/pyasn1/type/univ.py +++ b/pyasn1/type/univ.py @@ -365,9 +365,12 @@ class OctetString(base.AbstractSimpleAsn1Item): return octets.ints2octs(r) def prettyOut(self, value): - if isinstance(value, OctetString) an...
OctetString.pretyOut() reworked to be a filter
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,16 @@ from setuptools import setup import os +import sys + +if sys.version_info < (3, 6): + raise RuntimeError('xcat requires Python 3.6!') readme = "" if os.path.exists("README.rst"): with open("README....
Check version info in setup.py
py
diff --git a/tests/data_context/cloud_data_context/test_datasource_crud.py b/tests/data_context/cloud_data_context/test_datasource_crud.py index <HASH>..<HASH> 100644 --- a/tests/data_context/cloud_data_context/test_datasource_crud.py +++ b/tests/data_context/cloud_data_context/test_datasource_crud.py @@ -12,7 +12,7 @@...
[MAINTENANCE] Add back `integration` mark to tests in `test_datasource_crud.py` (#<I>) * refactor: use e2e instead of integration for request-making tests * chore: remove env vars * chore: update marks * chore: revert to develop * test: update test marks
py
diff --git a/argresolver/resolver.py b/argresolver/resolver.py index <HASH>..<HASH> 100644 --- a/argresolver/resolver.py +++ b/argresolver/resolver.py @@ -59,7 +59,7 @@ class Resolver(utils.Loggable): def resolve(wrapped_fun, resolve_fun): def wrapper(*args, **kwargs): # Argument name-value p...
Removes deprecated call to inspect.getargspec with inspect.getfullargspec
py
diff --git a/nion/swift/ScriptsDialog.py b/nion/swift/ScriptsDialog.py index <HASH>..<HASH> 100644 --- a/nion/swift/ScriptsDialog.py +++ b/nion/swift/ScriptsDialog.py @@ -317,6 +317,7 @@ class RunScriptDialog(Dialog.ActionDialog): with self.__lock: self.__q.append(request_close) + ...
Fix bug in handling script dialog closing.
py
diff --git a/tests/test_code_quality.py b/tests/test_code_quality.py index <HASH>..<HASH> 100644 --- a/tests/test_code_quality.py +++ b/tests/test_code_quality.py @@ -49,8 +49,8 @@ def collect_errors(): # errors.append((message_too_long, fname, line_no)) if line is not None: - #if ...
Enable empty trailing line code quality test
py
diff --git a/saharaclient/api/base.py b/saharaclient/api/base.py index <HASH>..<HASH> 100644 --- a/saharaclient/api/base.py +++ b/saharaclient/api/base.py @@ -174,10 +174,10 @@ class ResourceManager(object): try: error_data = get_json(resp) except Exception: + msg = _("Failed t...
Shows reason of failure in base.get base.get showed only a generic message, hiding the real problem that happened. Change-Id: I<I>b<I>f8e5bfb<I>a<I>def6e<I>d7fb<I>bae6f Closes-Bug: #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup(name='marionette-tg', package_data={'marionette_tg': ['marionette.conf','formats/*.mar']}, include_package_data=True, install_requires=['importlib','twisted','fte','regex2dfa','ply'], ...
Issue #<I>: version bump
py
diff --git a/storm/ssh_config.py b/storm/ssh_config.py index <HASH>..<HASH> 100644 --- a/storm/ssh_config.py +++ b/storm/ssh_config.py @@ -1,5 +1,7 @@ # -*- coding: utf8 -*- +from os import makedirs +from os.path import dirname from os.path import expanduser from os.path import exists from paramiko.config import ...
fix the issue when $HOME/.ssh folder does not exist
py
diff --git a/optimal/optimize.py b/optimal/optimize.py index <HASH>..<HASH> 100644 --- a/optimal/optimize.py +++ b/optimal/optimize.py @@ -515,7 +515,7 @@ def _make_hyperparameter_decode_func(locked_values, meta_parameters): def decode(solution): """Convert solution into dict of hyperparameters.""" ...
Fix bug with optimize_hyperparams The bug causes the last evaluated hyperparams to be returned as best, regardless of fitness. Reusing the same dict for hyperparameters resulted in it being modified, instead of a new hyperparameter dict being returned. This was not an issue before Optimizer.optimize returned the resul...
py
diff --git a/bfg9000/environment.py b/bfg9000/environment.py index <HASH>..<HASH> 100644 --- a/bfg9000/environment.py +++ b/bfg9000/environment.py @@ -166,7 +166,7 @@ class Environment(object): # v7 replaces bfgpath with bfgdir. if version < 7: - bfgdir = Path.from_json(data['bfgpath']).p...
Fix upgrading from very old versions of .bfg_environ
py
diff --git a/_pydev_bundle/pydev_ipython_console_011.py b/_pydev_bundle/pydev_ipython_console_011.py index <HASH>..<HASH> 100644 --- a/_pydev_bundle/pydev_ipython_console_011.py +++ b/_pydev_bundle/pydev_ipython_console_011.py @@ -313,16 +313,17 @@ class _PyDevFrontEnd: version = release.__version__ def __i...
Fix Debug Console when attaching to IPython process (PY-<I>) (cherry picked from commit <I>cbaa)
py
diff --git a/pfdicom/pfdicom.py b/pfdicom/pfdicom.py index <HASH>..<HASH> 100755 --- a/pfdicom/pfdicom.py +++ b/pfdicom/pfdicom.py @@ -325,6 +325,22 @@ class pfdicom(object): 'l_file': al_file } + def ret_dump(self, d_ret, **kwargs): + """ + JSON print results to console (or c...
Add ret_dump method for JSON printing to console
py
diff --git a/tests/test_devices.py b/tests/test_devices.py index <HASH>..<HASH> 100644 --- a/tests/test_devices.py +++ b/tests/test_devices.py @@ -24,8 +24,11 @@ def test_default_pin_factory_order(): with patch('sys.path') as path, \ patch('io.open') as io, \ patch('os.e...
Add comments to explain why we're patching
py
diff --git a/catapult_build/build_steps.py b/catapult_build/build_steps.py index <HASH>..<HASH> 100644 --- a/catapult_build/build_steps.py +++ b/catapult_build/build_steps.py @@ -30,7 +30,7 @@ _DASHBOARD_TESTS = [ '--timeout-sec=120', '--timeout-retries=2' ], 'outputs_presentation_json': ...
[Catapult] Stop running dashboard tests on non-Linux OS The code under Dashboard is for chromeperf service which is not supposed to run on android/mac/windows. Disabling the test on those OSs. Bug: chromium:<I> Change-Id: I<I>e1dad<I>ad4bbab<I>dabd<I>bdc1a<I> Reviewed-on: <URL>
py
diff --git a/subconvert/subconvert_gui.py b/subconvert/subconvert_gui.py index <HASH>..<HASH> 100644 --- a/subconvert/subconvert_gui.py +++ b/subconvert/subconvert_gui.py @@ -306,7 +306,7 @@ class SubConvertGUI(QtGui.QWidget): self.change_item_icon(item, 1) continue except...
Fixed a problem with not showing SubParsingError if it contained non-ascii characters.
py
diff --git a/insights/specs/sos_archive.py b/insights/specs/sos_archive.py index <HASH>..<HASH> 100644 --- a/insights/specs/sos_archive.py +++ b/insights/specs/sos_archive.py @@ -31,6 +31,7 @@ class SosSpecs(Specs): ceph_health_detail = simple_file("sos_commands/ceph/ceph_health_detail_--format_json-pretty") ...
Add Spec path of chronyc_sources for sos_archive
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -124,7 +124,18 @@ def main(): long_description=LONG_DESCRIPTION, author='Mark Dickinson', author_email='dickinsm@gmail.com', - url='http://www.mpfr.org', + url='http://bitbucket.org/dic...
Add classifiers, platforms to setup.py. Fix url to point to bitbucket.
py
diff --git a/stanfordnlp/models/common/conll.py b/stanfordnlp/models/common/conll.py index <HASH>..<HASH> 100644 --- a/stanfordnlp/models/common/conll.py +++ b/stanfordnlp/models/common/conll.py @@ -136,11 +136,9 @@ class CoNLLFile(): def write_conll(self, filename): """ Write current conll contents to fi...
have write to file use conll string method
py
diff --git a/safe_qgis/clipper.py b/safe_qgis/clipper.py index <HASH>..<HASH> 100644 --- a/safe_qgis/clipper.py +++ b/safe_qgis/clipper.py @@ -300,12 +300,11 @@ def clipGeometry(theClipPolygon, theGeometry): myType = theGeometry.wkbType() if myType in myLineTypes: myCombinedGeometry = theGeometry.com...
Remove unneeded wrap of intersection into another geometry object
py
diff --git a/root_pandas/readwrite.py b/root_pandas/readwrite.py index <HASH>..<HASH> 100644 --- a/root_pandas/readwrite.py +++ b/root_pandas/readwrite.py @@ -389,6 +389,15 @@ def to_root(df, path, key='my_ttree', mode='w', store_index=True, *args, **kwarg raise IOError("cannot open file {0}".format(path)) ...
Allow trees to be written to folders
py
diff --git a/dataproperty/_extractor.py b/dataproperty/_extractor.py index <HASH>..<HASH> 100644 --- a/dataproperty/_extractor.py +++ b/dataproperty/_extractor.py @@ -129,14 +129,14 @@ class DataPropertyExtractor(object): @property def min_padding_len(self): - return self.__min_padding_len + r...
Rename a private variable to be more precisely represent the variable objective.
py
diff --git a/buildozer/__init__.py b/buildozer/__init__.py index <HASH>..<HASH> 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -6,7 +6,7 @@ Generic Python packager for Android / iOS. Desktop later. ''' -__version__ = '0.18' +__version__ = '0.19-dev' import os import re
bump to <I>-dev
py
diff --git a/salt/states/pip_state.py b/salt/states/pip_state.py index <HASH>..<HASH> 100644 --- a/salt/states/pip_state.py +++ b/salt/states/pip_state.py @@ -24,7 +24,6 @@ from __future__ import absolute_import import re import types import logging -import pkg_resources # Import salt libs import salt.utils @@ -...
Don't fail if pkg_resources is not importable
py
diff --git a/rocket/main.py b/rocket/main.py index <HASH>..<HASH> 100644 --- a/rocket/main.py +++ b/rocket/main.py @@ -24,6 +24,7 @@ from .listener import Listener # Setup Logging log = logging.getLogger('Rocket') +log.setLevel(logging.WARNING) log.addHandler(NullHandler()) class Rocket(object):
Explicitly set the log level to warning.
py
diff --git a/holidays.py b/holidays.py index <HASH>..<HASH> 100644 --- a/holidays.py +++ b/holidays.py @@ -2278,7 +2278,7 @@ class Sweden(HolidayBase): self[date(year, 6, 6)] = "Sveriges nationaldag" self[date(year, 12, 25)] = "Juldagen" - self[date(year, 12, 26)] = "Annandag jul" ...
Removed whitespace found with flake8
py
diff --git a/ccmlib/node.py b/ccmlib/node.py index <HASH>..<HASH> 100644 --- a/ccmlib/node.py +++ b/ccmlib/node.py @@ -1,6 +1,7 @@ # ccm node from __future__ import with_statement +from distutils.version import LooseVersion import errno import glob import os @@ -1410,7 +1411,7 @@ class Node(object): if ...
minimal fix for cdc version checking (#<I>)
py
diff --git a/raiden/network/proxies/token_network.py b/raiden/network/proxies/token_network.py index <HASH>..<HASH> 100644 --- a/raiden/network/proxies/token_network.py +++ b/raiden/network/proxies/token_network.py @@ -2190,10 +2190,10 @@ class TokenNetwork: ) raise BrokenPreco...
Fix Precondition: Settle after the settlement period ends
py
diff --git a/squad/frontend/tests.py b/squad/frontend/tests.py index <HASH>..<HASH> 100644 --- a/squad/frontend/tests.py +++ b/squad/frontend/tests.py @@ -82,16 +82,17 @@ class TestResultTable(list): query = """ SELECT suite_id, - name, + core_test.name, SUM(CAS...
frontend: sort "all test results" by suite name as well Adding that extra join to the query has a small performance hit. Testing against a build with a little short of <I> tests, response time goes from <I>±<I> ms to <I>±<I> ms; mean increases by ~<I>%.
py
diff --git a/bukuserver/server.py b/bukuserver/server.py index <HASH>..<HASH> 100644 --- a/bukuserver/server.py +++ b/bukuserver/server.py @@ -344,12 +344,11 @@ def search_tag( row: T.Tuple[str, int] for row in db.cur.execute(*query_args): - tagset = row[0].strip(buku.DELIM).split(buku.DELIM) - ...
fix(search_tag): no key on dic
py
diff --git a/rest_registration/notifications/enums.py b/rest_registration/notifications/enums.py index <HASH>..<HASH> 100644 --- a/rest_registration/notifications/enums.py +++ b/rest_registration/notifications/enums.py @@ -1,11 +1,11 @@ -from enum import Enum, auto +from enum import Enum class NotificationType(Enu...
Do not use enum.auto() as it is not supported in python <I>, <I>
py
diff --git a/indra/tools/reading/db_reading/read_db_aws.py b/indra/tools/reading/db_reading/read_db_aws.py index <HASH>..<HASH> 100644 --- a/indra/tools/reading/db_reading/read_db_aws.py +++ b/indra/tools/reading/db_reading/read_db_aws.py @@ -24,7 +24,7 @@ from indra.tools.reading.readers import get_readers def plot...
Make histograms more useful.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -30,4 +30,5 @@ setup( localfilefs=abl.vpath.base.localfs:LocalFileSystem memoryfs=abl.vpath.base.memory:MemoryFileSystem """, + zip_safe=False, )
added zip_safe=False to setup.py
py
diff --git a/ariane_procos/gears.py b/ariane_procos/gears.py index <HASH>..<HASH> 100644 --- a/ariane_procos/gears.py +++ b/ariane_procos/gears.py @@ -163,7 +163,7 @@ class DirectoryGear(InjectorGearSkeleton): if SystemGear.fqdn is None: SystemGear.fqdn = SystemGear.hostname - LOGGER.info...
[ACPPOS-<I>] fix fqdn logs
py